xref: /aosp_15_r20/external/clang/test/CodeGen/pgo-sample.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // Test if PGO sample use passes are invoked.
2*67e74705SXin Li //
3*67e74705SXin Li // Ensure Pass PGOInstrumentationGenPass is invoked.
4*67e74705SXin Li // RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s
5*67e74705SXin Li // CHECK: Simplify the CFG
6*67e74705SXin Li // CHECK: SROA
7*67e74705SXin Li // CHECK: Combine redundant instructions
8*67e74705SXin Li // CHECK: Remove unused exception handling info
9*67e74705SXin Li // CHECK: Sample profile pass
10