llvm-project/bolt/test/verify-cfg.test
zhoujiapeng 16fd879980 [BOLT] Skip the validation of CFG after it is finalized
When current state is `CFG_Finalized`, function `validateCFG()` should return true directly.

Reviewed By: maksfb, yota9, Kepontry

Differential Revision: https://reviews.llvm.org/D159410
2023-09-17 00:07:59 +08:00

9 lines
271 B
Plaintext

# Verify if the `--verify-cfg` option might produce incorrect alerts.
REQUIRES: system-linux
RUN: %clang %cflags %p/Inputs/hello.c -o %t -Wl,-q
RUN: llvm-bolt %t -o %t.bolt --verify-cfg 2>&1 | FileCheck %s
CHECK-NOT: BOLT-ERROR: Invalid CFG detected after pass {{.*}}