diff options
Diffstat (limited to 'test/CodeGen/pgo-sample.c')
-rw-r--r-- | test/CodeGen/pgo-sample.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/pgo-sample.c b/test/CodeGen/pgo-sample.c new file mode 100644 index 000000000000..c955edfab7a4 --- /dev/null +++ b/test/CodeGen/pgo-sample.c @@ -0,0 +1,9 @@ +// Test if PGO sample use passes are invoked. +// +// Ensure Pass PGOInstrumentationGenPass is invoked. +// RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s +// CHECK: Simplify the CFG +// CHECK: SROA +// CHECK: Combine redundant instructions +// CHECK: Remove unused exception handling info +// CHECK: Sample profile pass |