1 Some basic tests for supplementing instrumentation profile with sample profile for static funcs.
3 RUN: llvm-profdata merge -supplement-instr-with-sample=%p/Inputs/NoFUnique.afdotext -suppl-min-size-threshold=2 %p/Inputs/NoFUnique.proftext -o %t1
4 RUN: llvm-profdata show -function=foo -counts %t1 | FileCheck %s
6 RUN: llvm-profdata merge -supplement-instr-with-sample=%p/Inputs/FUnique.afdotext -suppl-min-size-threshold=2 %p/Inputs/FUnique.proftext -o %t2
7 RUN: llvm-profdata show -function=foo -counts %t2 | FileCheck %s
9 RUN: llvm-profdata merge -supplement-instr-with-sample=%p/Inputs/NoFUnique.afdotext -suppl-min-size-threshold=2 %p/Inputs/FUnique.proftext -o %t3
10 RUN: llvm-profdata show -function=foo -counts %t3 | FileCheck %s
12 RUN: llvm-profdata merge -supplement-instr-with-sample=%p/Inputs/FUnique.afdotext -suppl-min-size-threshold=2 %p/Inputs/NoFUnique.proftext -o %t4
13 RUN: llvm-profdata show -function=foo -counts %t4 | FileCheck %s
15 CHECK: Counters: 3 <PseudoHot>
16 CHECK-NEXT: Instrumentation level: