Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGen/pgo-sample.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // Test if PGO sample use passes are invoked. |
2 // | |
3 // Ensure Pass PGOInstrumentationGenPass is invoked. | |
4 // 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 | |
5 // 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 | |
6 | |
7 // LEGACY: Remove unused exception handling info | |
8 // LEGACY: Sample profile pass | |
9 | |
10 // NEWPM: SimplifyCFGPass | |
11 // NEWPM: SampleProfileLoaderPass | |
12 | |
13 int func(int a) { return a; } |