1 ; Test CSGen pass in CSPGO.
2 ; RUN: llvm-profdata merge %S/Inputs/cspgo-noncs.proftext -o %t-noncs.profdata
3 ; RUN: llvm-profdata merge %S/Inputs/cspgo-cs.proftext -o %t-cs.profdata
4 ; RUN: opt -O2 -debug-pass=Structure -pgo-kind=pgo-instr-use-pipeline -profile-file='%t-noncs.profdata' -cspgo-kind=cspgo-instr-gen-pipeline -cs-profilegen-file=alloc %s 2>&1 |FileCheck %s --check-prefixes=CSGENDEFAULT
5 ; CSGENDEFAULT: PGOInstrumentationUse
6 ; CSGENDEFAULT: PGOInstrumentationGenCreateVar
7 ; CSGENDEFAULT: PGOInstrumentationGen
9 ; Test CSUse pass in CSPGO.
10 ; RUN: opt -O2 -debug-pass=Structure -pgo-kind=pgo-instr-use-pipeline -profile-file='%t-cs.profdata' -cspgo-kind=cspgo-instr-use-pipeline %s 2>&1 |FileCheck %s --check-prefixes=CSUSEDEFAULT
11 ; CSUSEDEFAULT: PGOInstrumentationUse
12 ; CSUSEDEFAULT-NOT: PGOInstrumentationGenCreateVar
13 ; CSUSEDEFAULT: PGOInstrumentationUse