2019-01-17 00:19:02 +01: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 04:00:43 +02:00
|
|
|
; RUN: llvm-profdata merge %S/Inputs/new-pm-pgo.proftext -o %t.profdata
|
2020-10-19 12:23:22 +02: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-13 20:09:13 +01: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
|
2020-10-19 12:23:22 +02: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 00:19:02 +01: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-07 22:23:20 +02:00
|
|
|
; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_O
|
2019-01-17 00:19:02 +01: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-07 22:23:20 +02:00
|
|
|
; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_PRE_LINK
|
2019-01-17 00:19:02 +01: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-07 22:23:20 +02:00
|
|
|
; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_POST_LINK
|
2017-07-26 17:01:20 +02: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 04:00:43 +02:00
|
|
|
;
|
|
|
|
; GEN: Running pass: PGOInstrumentationGen
|
|
|
|
; USE: Running pass: PGOInstrumentationUse
|
2017-10-24 00:21:29 +02:00
|
|
|
; USE: Running pass: PGOIndirectCallPromotion
|
|
|
|
; USE: Running pass: PGOMemOPSizeOpt
|
2020-01-13 20:09:13 +01:00
|
|
|
; USE_POST_LINK: Running pass: PGOIndirectCallPromotion
|
|
|
|
; USE_POST_LINK: Running pass: PGOMemOPSizeOpt
|
2020-07-29 02:08:24 +02:00
|
|
|
; SAMPLE_USE_O: Running pass: AddDiscriminatorsPass
|
|
|
|
; SAMPLE_USE_PRE_LINK: Running pass: AddDiscriminatorsPass
|
2021-04-12 20:51:51 +02:00
|
|
|
; SAMPLE_USE: Running pass: LowerExpectIntrinsicPass
|
2017-08-07 22:23:20 +02:00
|
|
|
; SAMPLE_USE: Running pass: SimplifyCFGPass
|
|
|
|
; SAMPLE_USE: Running pass: SROA
|
|
|
|
; SAMPLE_USE: Running pass: EarlyCSEPass
|
|
|
|
; SAMPLE_USE_POST_LINK: Running pass: InstCombinePass
|
2017-07-26 04:00:43 +02:00
|
|
|
; SAMPLE_USE: Running pass: SampleProfileLoaderPass
|
2017-08-07 22:23:20 +02:00
|
|
|
; SAMPLE_USE_O: Running pass: PGOIndirectCallPromotion
|
|
|
|
; SAMPLE_USE_POST_LINK-NOT: Running pass: GlobalOptPass
|
|
|
|
; SAMPLE_USE_POST_LINK: Running pass: PGOIndirectCallPromotion
|
2020-01-13 20:09:13 +01:00
|
|
|
; SAMPLE_USE_PRE_LINK-NOT: Running pass: PGOIndirectCallPromotion
|
2020-07-29 02:08:24 +02:00
|
|
|
; SAMPLE_GEN: Running pass: AddDiscriminatorsPass
|
2020-10-19 12:23:22 +02:00
|
|
|
; SPLIT: Running pass: HotColdSplittingPass
|
2017-07-26 04:00:43 +02:00
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|