38 lines · plain
1; RUN: opt -debug-pass-manager -passes='default<O2>' -pgo-kind=pgo-instr-gen-pipeline -profile-file='temp' %s 2>&1 |FileCheck %s --check-prefixes=GEN2; RUN: llvm-profdata merge %S/Inputs/new-pm-pgo.proftext -o %t.profdata3; 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=USE4; 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=USE5; 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_LINK6; 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=SPLIT7; 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 \8; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_O9; 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 \10; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_PRE_LINK11; 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 \12; RUN: |FileCheck %s --check-prefixes=SAMPLE_USE,SAMPLE_USE_POST_LINK13; RUN: opt -debug-pass-manager -passes='default<O2>' -debug-info-for-profiling %s 2>&1 |FileCheck %s --check-prefixes=SAMPLE_GEN14;15; GEN: Running pass: PGOInstrumentationGen16; USE: Running pass: PGOInstrumentationUse17; USE: Running pass: PGOIndirectCallPromotion18; USE: Running pass: PGOMemOPSizeOpt19; USE_POST_LINK: Running pass: PGOIndirectCallPromotion20; USE_POST_LINK: Running pass: PGOMemOPSizeOpt21; SAMPLE_USE_O: Running pass: AddDiscriminatorsPass22; SAMPLE_USE_PRE_LINK: Running pass: AddDiscriminatorsPass23; SAMPLE_USE_PRE_LINK: Running pass: LowerExpectIntrinsicPass24; SAMPLE_USE_PRE_LINK: Running pass: SimplifyCFGPass25; SAMPLE_USE_PRE_LINK: Running pass: SROAPass26; SAMPLE_USE_PRE_LINK: Running pass: EarlyCSEPass27; SAMPLE_USE: Running pass: SampleProfileLoaderPass28; SAMPLE_USE_O: Running pass: PGOIndirectCallPromotion29; SAMPLE_USE_POST_LINK-NOT: Running pass: GlobalOptPass30; SAMPLE_USE_POST_LINK: Running pass: PGOIndirectCallPromotion31; SAMPLE_USE_PRE_LINK-NOT: Running pass: PGOIndirectCallPromotion32; SAMPLE_GEN: Running pass: AddDiscriminatorsPass33; SPLIT: Running pass: HotColdSplittingPass34 35define void @foo() {36 ret void37}38