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 -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s 5 // CHECK: Simplify the CFG 6 // CHECK: SROA 7 // CHECK: Combine redundant instructions 8 // CHECK: Remove unused exception handling info 9 // CHECK: Sample profile pass 10