2019-01-17 07:19:02 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='default<O2>' -pgo-kind=pgo-instr-gen-pipeline -profile-file='temp' %s 2>&1 |FileCheck %s --check-prefixes=GEN
|
2017-07-26 10:00:43 +08:00
|
|
|
; RUN: llvm-profdata merge %S/Inputs/new-pm-pgo.proftext -o %t.profdata
|
2019-01-17 07:19:02 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='default<O2>' -pgo-kind=pgo-instr-use-pipeline -profile-file='%t.profdata' %s 2>&1 |FileCheck %s --check-prefixes=USE
|
2020-01-14 03:09:13 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='thinlto-pre-link<O2>' -pgo-kind=pgo-instr-use-pipeline -profile-file='%t.profdata' %s 2>&1 |FileCheck %s --check-prefixes=USE
|
|
|
|
; RUN: opt -debug-pass-manager -passes='thinlto<O2>' -pgo-kind=pgo-instr-use-pipeline -profile-file='%t.profdata' %s 2>&1 |FileCheck %s --check-prefixes=USE_POST_LINK
|
2019-02-06 12:29:39 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='default<O2>' -hot-cold-split -pgo-kind=pgo-instr-use-pipeline -profile-file='%t.profdata' %s 2>&1 |FileCheck %s --check-prefixes=USE --check-prefixes=SPLIT
|
2019-01-17 07:19:02 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='default<O2>' -pgo-kind=pgo-sample-use-pipeline -profile-file='%S/Inputs/new-pm-pgo.prof' %s 2>&1 \
|
2017-08-08 04:23:20 +08:00
|
|
|
; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_O
|
2019-01-17 07:19:02 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='thinlto-pre-link<O2>' -pgo-kind=pgo-sample-use-pipeline -profile-file='%S/Inputs/new-pm-pgo.prof' %s 2>&1 \
|
2017-08-08 04:23:20 +08:00
|
|
|
; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_PRE_LINK
|
2019-01-17 07:19:02 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='thinlto<O2>' -pgo-kind=pgo-sample-use-pipeline -profile-file='%S/Inputs/new-pm-pgo.prof' %s 2>&1 \
|
2017-08-08 04:23:20 +08:00
|
|
|
; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_POST_LINK
|
2017-07-26 23:01:20 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='default<O2>' -new-pm-debug-info-for-profiling %s 2>&1 |FileCheck %s --check-prefixes=SAMPLE_GEN
|
2017-07-26 10:00:43 +08:00
|
|
|
;
|
|
|
|
; GEN: Running pass: PGOInstrumentationGen
|
|
|
|
; USE: Running pass: PGOInstrumentationUse
|
2017-10-24 06:21:29 +08:00
|
|
|
; USE: Running pass: PGOIndirectCallPromotion
|
|
|
|
; USE: Running pass: PGOMemOPSizeOpt
|
2020-01-14 03:09:13 +08:00
|
|
|
; USE_POST_LINK: Running pass: PGOIndirectCallPromotion
|
|
|
|
; USE_POST_LINK: Running pass: PGOMemOPSizeOpt
|
2017-08-08 04:23:20 +08:00
|
|
|
; SAMPLE_USE_O: Running pass: ModuleToFunctionPassAdaptor<{{.*}}AddDiscriminatorsPass{{.*}}>
|
|
|
|
; SAMPLE_USE_PRE_LINK: Running pass: ModuleToFunctionPassAdaptor<{{.*}}AddDiscriminatorsPass{{.*}}>
|
|
|
|
; SAMPLE_USE: Running pass: SimplifyCFGPass
|
|
|
|
; SAMPLE_USE: Running pass: SROA
|
|
|
|
; SAMPLE_USE: Running pass: EarlyCSEPass
|
|
|
|
; SAMPLE_USE: Running pass: LowerExpectIntrinsicPass
|
|
|
|
; SAMPLE_USE_POST_LINK: Running pass: InstCombinePass
|
2017-07-26 10:00:43 +08:00
|
|
|
; SAMPLE_USE: Running pass: SampleProfileLoaderPass
|
2017-08-08 04:23:20 +08:00
|
|
|
; SAMPLE_USE_O: Running pass: PGOIndirectCallPromotion
|
|
|
|
; SAMPLE_USE_POST_LINK-NOT: Running pass: GlobalOptPass
|
|
|
|
; SAMPLE_USE_POST_LINK: Running pass: PGOIndirectCallPromotion
|
2020-01-14 03:09:13 +08:00
|
|
|
; SAMPLE_USE_PRE_LINK-NOT: Running pass: PGOIndirectCallPromotion
|
2017-07-29 15:01:25 +08:00
|
|
|
; SAMPLE_GEN: Running pass: ModuleToFunctionPassAdaptor<{{.*}}AddDiscriminatorsPass{{.*}}>
|
2019-02-16 02:46:44 +08:00
|
|
|
; SPLIT: Running pass: HotColdSplittingPass
|
2017-07-26 10:00:43 +08:00
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|