2019-03-07 03:31:37 +08:00
|
|
|
; Test CSGen pass in CSPGO.
|
|
|
|
; RUN: llvm-profdata merge %S/Inputs/cspgo-noncs.proftext -o %t-noncs.profdata
|
|
|
|
; RUN: llvm-profdata merge %S/Inputs/cspgo-cs.proftext -o %t-cs.profdata
|
2020-08-18 08:48:04 +08:00
|
|
|
; RUN: opt -enable-new-pm=0 -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
|
2019-03-07 03:31:37 +08:00
|
|
|
; CSGENDEFAULT: PGOInstrumentationUse
|
|
|
|
; CSGENDEFAULT: PGOInstrumentationGenCreateVar
|
|
|
|
; CSGENDEFAULT: PGOInstrumentationGen
|
|
|
|
|
|
|
|
; Test CSUse pass in CSPGO.
|
2020-08-18 08:48:04 +08:00
|
|
|
; RUN: opt -enable-new-pm=0 -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
|
2019-03-07 03:31:37 +08:00
|
|
|
; CSUSEDEFAULT: PGOInstrumentationUse
|
|
|
|
; CSUSEDEFAULT-NOT: PGOInstrumentationGenCreateVar
|
|
|
|
; CSUSEDEFAULT: PGOInstrumentationUse
|