summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-profdata/overlap_vp.test
blob: 228b809e218e466afe4bcc9cf85e8f985f28d0fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
RUN: llvm-profdata overlap %p/Inputs/overlap_1_vp.proftext %p/Inputs/overlap_2_vp.proftext | FileCheck %s -check-prefix=OVERLAP
RUN: llvm-profdata merge %p/Inputs/overlap_1_vp.proftext -o %t_1_vp.profdata
RUN: llvm-profdata merge %p/Inputs/overlap_2_vp.proftext -o %t_2_vp.profdata
RUN: llvm-profdata overlap %t_1_vp.profdata %t_2_vp.profdata | FileCheck %s -check-prefix=OVERLAP
OVERLAP: Profile overlap infomation for base_profile: {{.*}} and test_profile:
OVERLAP: Program level:
OVERLAP:   # of functions overlap: 1
OVERLAP:   Edge profile overlap: 80.000%
OVERLAP:   Edge profile base count sum: 100000
OVERLAP:   Edge profile test count sum: 50000
OVERLAP:   IndirectCall profile overlap: 80.000%
OVERLAP:   IndirectCall profile base count sum: 100000
OVERLAP:   IndirectCall profile test count sum: 50000
OVERLAP:   MemOP profile overlap: 80.000%
OVERLAP:   MemOP profile base count sum: 100000
OVERLAP:   MemOP profile test count sum: 5000
OpenPOWER on IntegriCloud