1 ; RUN: llvm-profgen --format=text --perfscript=%S/Inputs/inline-cs-pseudoprobe.perfscript --binary=%S/Inputs/inline-cs-pseudoprobe.perfbin --output=%t --show-unwinder-output --profile-summary-cold-count=0 | FileCheck %s --check-prefix=CHECK-UNWINDER
2 ; RUN: FileCheck %s --input-file %t
4 ; CHECK: [main:2 @ foo]:74:0
12 ; CHECK-NEXT: 8: 14 bar:14
14 ; CHECK-NEXT: !CFGChecksum: 563088904013236
15 ; CHECK:[main:2 @ foo:8 @ bar]:28:14
18 ; CHECK-NEXT: !CFGChecksum: 72617220756
21 ; CHECK-UNWINDER: Binary(inline-cs-pseudoprobe.perfbin)'s Range Counter:
22 ; CHECK-UNWINDER-EMPTY:
23 ; CHECK-UNWINDER-NEXT: (800, 858): 1
24 ; CHECK-UNWINDER-NEXT: (80e, 82b): 1
25 ; CHECK-UNWINDER-NEXT: (80e, 858): 13
27 ; CHECK-UNWINDER: Binary(inline-cs-pseudoprobe.perfbin)'s Branch Counter:
28 ; CHECK-UNWINDER-EMPTY:
29 ; CHECK-UNWINDER-NEXT: (82b, 800): 1
30 ; CHECK-UNWINDER-NEXT: (858, 80e): 15
32 ; clang -O3 -fexperimental-new-pass-manager -fuse-ld=lld -fpseudo-probe-for-profiling
33 ; -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Xclang -mdisable-tail-calls
38 int bar(int x, int y) {
47 while (i++ < 4000 * 4000)
48 if (i % 91) s = bar(i, s); else s += 30;
49 printf("sum is %d\n", s);