Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / profile / instrprof-lto-pgogen.c
blobaa24786a1d7c5dea12b3de2e8d8c2949b9ce6b25
1 // REQUIRES: binutils_lto
3 // RUN: rm -rf %t.profraw
4 // RUN: %clang_pgogen=%t.profraw/ -fuse-ld=bfd -flto %s -o %t
5 // RUN: %run %t
6 // RUN: llvm-profdata merge %t.profraw -o %t.profdata
7 // RUN: llvm-profdata show %t.profdata | FileCheck %s
9 /// Test that we work around https://sourceware.org/bugzilla/show_bug.cgi?id=26262
10 /// (as of GNU ld 2.35) which happens when trying to generate IR profile with
11 /// BFD linker + LLVMgold.so
13 // CHECK: Instrumentation level: IR
14 int main() { return 0; }