38 lines · plain
1# If we see the same function name, but with different hashes, make2# sure we keep both.3 4# RUN: llvm-profdata merge %s -o %t 2>&15# RUN: llvm-profdata show %t -all-functions -counts > %t.out6 7# The function ordering is non-deterministic, so we need to do our8# checks in multiple runs.9# RUN: FileCheck -check-prefixes=FOO3,BOTH %s -input-file %t.out10# RUN: FileCheck -check-prefixes=FOO4,BOTH %s -input-file %t.out11 12# FOO3: Hash: 0x{{0+}}313# FOO3-NEXT: Counters: 314# FOO3-NEXT: Function count: 115# FOO3-NEXT: Block counts: [2, 3]16foo17318319120221322 23# FOO4: Hash: 0x{{0+}}424# FOO4-NEXT: Counters: 425# FOO4-NEXT: Function count: 1126# FOO4-NEXT: Block counts: [22, 33, 44]27foo284294301131223233334434 35# BOTH: Total functions: 236# BOTH: Maximum function count: 1137# BOTH: Maximum internal block count: 4438