2016-06-22 03:16:41 +08:00
|
|
|
// Test if PGO sample use passes are invoked.
|
|
|
|
//
|
2017-07-08 06:40:37 +08:00
|
|
|
// Ensure Pass PGOInstrumentationGenPass is invoked.
|
2019-06-25 00:44:27 +08:00
|
|
|
// RUN: %clang_cc1 -O2 -fno-experimental-new-pass-manager -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=LEGACY
|
|
|
|
// RUN: %clang_cc1 -O2 -fexperimental-new-pass-manager -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -fdebug-pass-manager -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=NEWPM
|
|
|
|
|
|
|
|
// LEGACY: Remove unused exception handling info
|
|
|
|
// LEGACY: Sample profile pass
|
|
|
|
|
|
|
|
// NEWPM: SimplifyCFGPass
|
|
|
|
// NEWPM: SampleProfileLoaderPass
|
|
|
|
|
|
|
|
int func(int a) { return a; }
|