2017-07-26 10:00:43 +08:00
|
|
|
; RUN: opt -debug-pass-manager -passes='default<O2>' -pgo-kind=new-pm-pgo-instr-gen-pipeline -profile-file='temp' %s 2>&1 |FileCheck %s --check-prefixes=GEN
|
|
|
|
; RUN: llvm-profdata merge %S/Inputs/new-pm-pgo.proftext -o %t.profdata
|
|
|
|
; RUN: opt -debug-pass-manager -passes='default<O2>' -pgo-kind=new-pm-pgo-instr-use-pipeline -profile-file='%t.profdata' %s 2>&1 |FileCheck %s --check-prefixes=USE
|
|
|
|
; RUN: opt -debug-pass-manager -passes='default<O2>' -pgo-kind=new-pm-pgo-sample-use-pipeline -profile-file='%S/Inputs/new-pm-pgo.prof' %s 2>&1 |FileCheck %s --check-prefixes=SAMPLE_USE
|
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-07-29 12:11:20 +08:00
|
|
|
; SAMPLE_USE: Running pass: ModuleToFunctionPassAdaptor<llvm::AddDiscriminatorsPass>
|
2017-07-26 10:00:43 +08:00
|
|
|
; SAMPLE_USE: Running pass: SampleProfileLoaderPass
|
2017-07-29 12:11:20 +08:00
|
|
|
; SAMPLE_GEN: Running pass: ModuleToFunctionPassAdaptor<llvm::AddDiscriminatorsPass>
|
2017-07-26 10:00:43 +08:00
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|