brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.3 KiB · 9dc4b03 Raw
33 lines · plain
1; Test CSGen pass in CSPGO.2; RUN: llvm-profdata merge %S/Inputs/cspgo-noncs.proftext -o %t-noncs.profdata3; RUN: llvm-profdata merge %S/Inputs/cspgo-cs.proftext -o %t-cs.profdata4; RUN: opt -debug-pass-manager -passes='default<O2>' -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=CSGENDEFAULT5; RUN: opt -debug-pass-manager -passes='thinlto-pre-link<O2>' -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=CSGENPRELINK6; RUN: opt -debug-pass-manager -passes='thinlto<O2>' -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=CSGENLTO7; RUN: opt -debug-pass-manager -passes='lto-pre-link<O2>' -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=CSGENPRELINK8; RUN: opt -debug-pass-manager -passes='lto<O2>' -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=CSGENLTO9; CSGENDEFAULT: Running pass: PGOInstrumentationUse10; CSGENDEFAULT: Running pass: PGOInstrumentationGenCreateVar11; CSGENDEFAULT: Running pass: PGOInstrumentationGen12; CSGENPRELINK: Running pass: PGOInstrumentationUse13; CSGENPRELINK: Running pass: PGOInstrumentationGenCreateVar14; CSGENPRELINK-NOT: Running pass: PGOInstrumentationGen15; CSGENLTO-NOT: Running pass: PGOInstrumentationUse16; CSGENLTO-NOT: Running pass: PGOInstrumentationGenCreateVar17; CSGENLTO: Running pass: PGOInstrumentationGen18 19; Test CSUse pass in CSPGO.20; RUN: opt -debug-pass-manager -passes='default<O2>' -pgo-kind=pgo-instr-use-pipeline -profile-file='%t-cs.profdata' -cspgo-kind=cspgo-instr-use-pipeline %s 2>&1 |FileCheck %s --check-prefixes=CSUSEDEFAULT21; RUN: opt -debug-pass-manager -passes='thinlto-pre-link<O2>' -pgo-kind=pgo-instr-use-pipeline -profile-file='%t-cs.profdata' -cspgo-kind=cspgo-instr-use-pipeline %s 2>&1 |FileCheck %s --check-prefixes=CSUSEPRELINK22; RUN: opt -debug-pass-manager -passes='thinlto<O2>' -pgo-kind=pgo-instr-use-pipeline -profile-file='%t-cs.profdata' -cspgo-kind=cspgo-instr-use-pipeline %s 2>&1 |FileCheck %s --check-prefixes=CSUSELTO23; RUN: opt -debug-pass-manager -passes='lto-pre-link<O2>' -pgo-kind=pgo-instr-use-pipeline -profile-file='%t-noncs.profdata' -cspgo-kind=cspgo-instr-use-pipeline %s 2>&1 |FileCheck %s --check-prefixes=CSUSEPRELINK24; RUN: opt -debug-pass-manager -passes='lto<O2>' -pgo-kind=pgo-instr-use-pipeline -profile-file='%t-cs.profdata' -cspgo-kind=cspgo-instr-use-pipeline %s 2>&1 |FileCheck %s --check-prefixes=CSUSELTO25; CSUSEDEFAULT: Running pass: PGOInstrumentationUse26; CSUSEDEFAULT-NOT: Running pass: PGOInstrumentationGenCreateVar27; CSUSEDEFAULT: Running pass: PGOInstrumentationUse28; CSUSEPRELINK: Running pass: PGOInstrumentationUse29; CSUSEPRELINK-NOT: Running pass: PGOInstrumentationGenCreateVar30; CSUSEPRELINK-NOT: Running pass: PGOInstrumentationUse31; CSUSELTO: Running pass: PGOInstrumentationUse32; CSUSELTO-NOT: Running pass: PGOInstrumentationUse33