1 RUN: llvm-profdata overlap -cs %p/Inputs/overlap_1_cs.proftext %p/Inputs/overlap_2_cs.proftext | FileCheck %s -check-prefix=OVERLAP
2 RUN: llvm-profdata merge %p/Inputs/overlap_1_cs.proftext -o %t_1_cs.profdata
3 RUN: llvm-profdata merge %p/Inputs/overlap_2_cs.proftext -o %t_2_cs.profdata
4 RUN: llvm-profdata overlap -cs %t_1_cs.profdata %t_2_cs.profdata | FileCheck %s -check-prefix=OVERLAP
5 OVERLAP: Profile overlap infomation for base_profile: {{.*}} and test_profile:
6 OVERLAP: Program level:
7 OVERLAP: # of functions overlap: 1
8 OVERLAP: Edge profile overlap: 80.000%
9 OVERLAP: Edge profile base count sum: 10000
10 OVERLAP: Edge profile test count sum: 10000