1 # If we see the same function name, but with different hashes, make
4 # RUN: llvm-profdata merge %s -o %t 2>&1
5 # RUN: llvm-profdata show %t -all-functions -counts > %t.out
7 # The function ordering is non-deterministic, so we need to do our
8 # checks in multiple runs.
9 # RUN: FileCheck -check-prefixes=FOO3,BOTH %s -input-file %t.out
10 # RUN: FileCheck -check-prefixes=FOO4,BOTH %s -input-file %t.out
12 # FOO3: Hash: 0x{{0+}}3
13 # FOO3-NEXT: Counters: 3
14 # FOO3-NEXT: Function count: 1
15 # FOO3-NEXT: Block counts: [2, 3]
23 # FOO4: Hash: 0x{{0+}}4
24 # FOO4-NEXT: Counters: 4
25 # FOO4-NEXT: Function count: 11
26 # FOO4-NEXT: Block counts: [22, 33, 44]
35 # BOTH: Total functions: 2
36 # BOTH: Maximum function count: 11
37 # BOTH: Maximum internal block count: 44