[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / llvm-profdata / suppl-instr-with-sample-flatten.test
blob2c569b5cf3b3f73235ce9ce7fd07d3e59a1ab211
1 Some basic tests for supplementing instrumentation profile with sample profile
2 with flattening.
4 Test bar.cc:bar's counters will be set to PseudoHot.
5 RUN: llvm-profdata merge \
6 RUN:     -supplement-instr-with-sample=%p/Inputs/flatten_sample.proftext \
7 RUN:     %p/Inputs/flatten_instr.proftext -o %t
8 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FLATTEN
10 FLATTEN:  bar.cc:bar:
11 FLATTEN-NEXT:    Hash: 0x00000000000008ae
12 FLATTEN-NEXT:    Counters: 10    <PseudoHot>
13 FLATTEN:  foo:
14 FLATTEN-NEXT:    Hash: 0x0000000000000457
15 FLATTEN-NEXT:    Counters: 5
16 FLATTEN-NEXT:    Block counts: [10000, 50, 2000, 40, 6000]
17 FLATTEN-NOT:  goo: