brintos

brintos / llvm-project-archived public Read only

0
0
Text · 662 B · 4a394d7 Raw
18 lines · plain
1Some basic tests for supplementing instrumentation profile with sample profile2with flattening.3 4Test bar.cc:bar's counters will be set to PseudoHot.5RUN: llvm-profdata merge \6RUN:     -supplement-instr-with-sample=%p/Inputs/flatten_sample.proftext \7RUN:     %p/Inputs/flatten_instr.proftext -o %t8RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FLATTEN9 10FLATTEN:  foo:11FLATTEN-NEXT:    Hash: 0x000000000000045712FLATTEN-NEXT:    Counters: 513FLATTEN-NEXT:    Block counts: [10000, 50, 2000, 40, 6000]14FLATTEN:  bar.cc;bar:15FLATTEN-NEXT:    Hash: 0x00000000000008ae16FLATTEN-NEXT:    Counters: 10    <PseudoHot>17FLATTEN-NOT:  goo:18