brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · 1e9bd11 Raw
49 lines · c
1// Value profiling is currently not supported in lightweight mode.2// RUN: %clang_pgogen -o %t -g -mllvm --profile-correlate=debug-info -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp3// RUN: env LLVM_PROFILE_FILE=%t.proflite %run %t4// RUN: llvm-profdata merge -o %t.profdata --debug-info=%t.dSYM %t.proflite5 6// RUN: %clang_pgogen -o %t.normal -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp7// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.normal8// RUN: llvm-profdata merge -o %t.normal.profdata %t.profraw9 10// RUN: llvm-profdata show --all-functions --counts %t.normal.profdata > %t.normal.functions11// RUN: llvm-profdata show --all-functions --counts %t.profdata > %t.functions12// RUN: diff %t.normal.functions %t.functions13 14// RUN: %clang_pgogen -o %t.cov -g -mllvm --profile-correlate=debug-info -mllvm -pgo-function-entry-coverage -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp15// RUN: env LLVM_PROFILE_FILE=%t.cov.proflite %run %t.cov16// RUN: llvm-profdata merge -o %t.cov.profdata --debug-info=%t.cov.dSYM %t.cov.proflite17 18// RUN: %clang_pgogen -o %t.cov.normal -mllvm --pgo-function-entry-coverage -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp19// RUN: env LLVM_PROFILE_FILE=%t.cov.profraw %run %t.cov.normal20// RUN: llvm-profdata merge -o %t.cov.normal.profdata %t.cov.profraw21 22// RUN: llvm-profdata show --all-functions --counts %t.cov.normal.profdata > %t.cov.normal.functions23// RUN: llvm-profdata show --all-functions --counts %t.cov.profdata > %t.cov.functions24// RUN: diff %t.cov.normal.functions %t.cov.functions25 26// Test debug info correlate with online merging.27 28// RUN: env LLVM_PROFILE_FILE=%t-1.profraw %run %t.normal29// RUN: env LLVM_PROFILE_FILE=%t-2.profraw %run %t.normal30// RUN: llvm-profdata merge -o %t.normal.profdata %t-1.profraw %t-2.profraw31 32// RUN: rm -rf %t.profdir && mkdir %t.profdir33// RUN: env LLVM_PROFILE_FILE=%t.profdir/%m.proflite %run %t34// RUN: env LLVM_PROFILE_FILE=%t.profdir/%m.proflite %run %t35// RUN: llvm-profdata merge -o %t.profdata --debug-info=%t.dSYM %t.profdir/36 37// RUN: llvm-profdata show --all-functions --counts %t.normal.profdata > %t.normal.functions38// RUN: llvm-profdata show --all-functions --counts %t.profdata > %t.functions39// RUN: diff %t.normal.functions %t.functions40 41// RUN: rm -rf %t.profdir && mkdir %t.profdir42// RUN: env LLVM_PROFILE_FILE=%t.profdir/%m.cov.proflite %run %t.cov43// RUN: env LLVM_PROFILE_FILE=%t.profdir/%m.cov.proflite %run %t.cov44// RUN: llvm-profdata merge -o %t.cov.profdata --debug-info=%t.cov.dSYM %t.profdir/45 46// RUN: llvm-profdata show --all-functions --counts %t.cov.normal.profdata > %t.cov.normal.functions47// RUN: llvm-profdata show --all-functions --counts %t.cov.profdata > %t.cov.functions48// RUN: diff %t.cov.normal.functions %t.cov.functions49