1; RUN: opt -disable-verify -debug-pass-manager -pgo-kind=pgo-instr-gen-pipeline -passes='default<Os>' -S %s 2>&1 | FileCheck %s --check-prefixes=CHECK-Osz
2; RUN: opt -disable-verify -debug-pass-manager -pgo-kind=pgo-instr-gen-pipeline -passes='default<Oz>' -S %s 2>&1 | FileCheck %s --check-prefixes=CHECK-Osz
3
4; CHECK-Osz: Running pass: ModuleInlinerWrapperPass
5; CHECK-Osz-NEXT: Running analysis: InlineAdvisorAnalysis
6; CHECK-Osz-NEXT: Running analysis: InnerAnalysisManagerProxy
7; CHECK-Osz-NEXT: Running analysis: LazyCallGraphAnalysis
8; CHECK-Osz-NEXT: Running analysis: FunctionAnalysisManagerCGSCCProxy on (foo)
9; CHECK-Osz-NEXT: Running analysis: OuterAnalysisManagerProxy
10; CHECK-Osz-NEXT: Running pass: InlinerPass on (foo)
11; CHECK-Osz-NEXT: Running pass: InlinerPass on (foo)
12; CHECK-Osz-NEXT: Running pass: SROA on foo
13; CHECK-Osz-NEXT: Running pass: EarlyCSEPass on foo
14; CHECK-Osz-NEXT: Running pass: SimplifyCFGPass on foo
15; CHECK-Osz-NEXT: Running pass: InstCombinePass on foo
16; CHECK-Osz-NEXT: Running pass: GlobalDCEPass
17; CHECK-Osz-NEXT: Running pass: PGOInstrumentationGen
18
19define void @foo() {
20  ret void
21}
22