1 ; RUN: llvm-profgen --format=text --use-dwarf-correlation --ignore-stack-samples --perfscript=%S/Inputs/cs-preinline-cost.perfscript --binary=%S/Inputs/cs-preinline-cost.perfbin --output %t
2 ; RUN: FileCheck %s --input-file %t
9 ; CHECK-NEXT: 65496: 545
10 ; CHECK-NEXT: 3.7: _Z3fooi:915794
16 ; CHECK-NEXT: 12: 6965
17 ; CHECK-NEXT: 13: 6965
18 ; CHECK-NEXT: 14: 6965
19 ; CHECK-NEXT: 15: 6965
21 ; CHECK-NEXT: 21: 6958
22 ; CHECK-NEXT: 22: 6958
23 ; CHECK-NEXT: 23: 6958
24 ; CHECK-NEXT: 24: 6958
26 ; CHECK-NEXT: 65529: 182
27 ; CHECK-NEXT: 4.8: _Z3fooi:16338
34 ; binary is built with the source below using the following command line:
35 ; clang -O3 -g -fpseudo-probe-for-profiling test.cpp
39 ;volatile int state = 9000;
52 ; while (state > 5000) {
53 ; for (int i = 50; i >= 0; i--) {
61 ; while (state < 5000) {
62 ; for (int i = 50; i >= 0; i--) {
73 ;volatile int cnt = 10000000;//10000000;
76 ; for (int i = 0; i < cnt; i++) {