1 RUN: llvm-profdata overlap %p/Inputs/overlap_1.proftext %p/Inputs/overlap_2.proftext | FileCheck %s -check-prefix=OVERLAP
2 RUN: llvm-profdata overlap -function=main %p/Inputs/overlap_1.proftext %p/Inputs/overlap_2.proftext | FileCheck %s --check-prefixes=MAINFUNC,OVERLAP
3 RUN: llvm-profdata overlap -value-cutoff=15000 %p/Inputs/overlap_1.proftext %p/Inputs/overlap_2.proftext | FileCheck %s --check-prefixes=MAINFUNC,OVERLAP
4 RUN: llvm-profdata merge %p/Inputs/overlap_1.proftext -o %t_1.profdata
5 RUN: llvm-profdata merge %p/Inputs/overlap_2.proftext -o %t_2.profdata
6 RUN: llvm-profdata overlap %t_1.profdata %t_2.profdata | FileCheck %s -check-prefix=OVERLAP
7 MAINFUNC: Function: main (Hash=29212902728)
8 MAINFUNC: # of edge counters overlap: 2
9 MAINFUNC: Edge profile overlap: 100.000%
10 MAINFUNC: Edge profile base count sum: 200000
11 MAINFUNC: Edge profile test count sum: 20000
12 OVERLAP: Profile overlap infomation for base_profile: {{.*}} and test_profile:
13 OVERLAP: Program level:
14 OVERLAP: # of functions overlap: 2
15 OVERLAP: # of functions mismatch: 1
16 OVERLAP: # of functions only in test_profile: 1
17 OVERLAP: Edge profile overlap: 60.000%
18 OVERLAP: Mismatched count percentage (Edge): 20.000%
19 OVERLAP: Percentage of Edge profile only in test_profile: 20.000%
20 OVERLAP: Edge profile base count sum: 500000
21 OVERLAP: Edge profile test count sum: 50000