Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / verify-each.c
blob328b846508920121623b79406d5fa7ada1c4894a
1 // Test to ensure -llvm-verify-each works.
2 // REQUIRES: x86-registered-target
4 // RUN: %clang_cc1 -O2 -o /dev/null -triple x86_64-unknown-linux-gnu -emit-llvm-bc %s -fdebug-pass-manager 2>&1 | FileCheck %s --check-prefix=NO
5 // NO-NOT: Verifying
7 // RUN: %clang_cc1 -O2 -o /dev/null -triple x86_64-unknown-linux-gnu -emit-llvm-bc %s -fdebug-pass-manager -llvm-verify-each 2>&1 | FileCheck %s
9 // RUN: %clang_cc1 -O2 -o %t.o -flto=thin -triple x86_64-unknown-linux-gnu -emit-llvm-bc %s -fdebug-pass-manager -llvm-verify-each 2>&1 | FileCheck %s
10 // RUN: llvm-lto -thinlto -o %t %t.o
12 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-obj -O2 -o /dev/null -x ir %t.o -fthinlto-index=%t.thinlto.bc -fdebug-pass-manager -llvm-verify-each 2>&1 | FileCheck %s
14 // CHECK: Verifying function foo
15 // CHECK: Running pass: InstCombinePass
16 // CHECK: Verifying function foo
18 void foo(void) {