Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / pgo-sample.c
blob07cabb3cf16ad2bbddc33ea2659bc02cbea1e035
1 // Test if PGO sample use passes are invoked.
2 //
3 // Ensure Pass PGOInstrumentationGenPass is invoked.
4 // RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -fdebug-pass-manager -emit-llvm -o - 2>&1 | FileCheck %s
6 // CHECK: SimplifyCFGPass
7 // CHECK: SampleProfileLoaderPass
9 int func(int a) { return a; }