1 Some very basic tests for the multiple input cases. 2 3 RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-2.proftext -o %t 4 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3 5 RUN: llvm-profdata merge %p/Inputs/foo3-2.proftext %p/Inputs/foo3-1.proftext -o %t 6 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3 7 FOO3: foo: 8 FOO3: Counters: 3 9 FOO3: Function count: 8 10 FOO3: Block counts: [7, 6] 11 FOO3: Total functions: 1 12 FOO3: Maximum function count: 8 13 FOO3: Maximum internal block count: 7 14 15 RUN: llvm-profdata merge %p/Inputs/empty.proftext %p/Inputs/foo3-1.proftext -o %t 16 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3EMPTY 17 FOO3EMPTY: foo: 18 FOO3EMPTY: Counters: 3 19 FOO3EMPTY: Function count: 1 20 FOO3EMPTY: Block counts: [2, 3] 21 FOO3EMPTY: Total functions: 1 22 FOO3EMPTY: Maximum function count: 1 23 FOO3EMPTY: Maximum internal block count: 3 24 25 RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3bar3-1.proftext -o %t 26 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3FOO3BAR3 27 FOO3FOO3BAR3: foo: 28 FOO3FOO3BAR3: Counters: 3 29 FOO3FOO3BAR3: Function count: 3 30 FOO3FOO3BAR3: Block counts: [5, 8] 31 FOO3FOO3BAR3: bar: 32 FOO3FOO3BAR3: Counters: 3 33 FOO3FOO3BAR3: Function count: 7 34 FOO3FOO3BAR3: Block counts: [11, 13] 35 FOO3FOO3BAR3: Total functions: 2 36 FOO3FOO3BAR3: Maximum function count: 7 37 FOO3FOO3BAR3: Maximum internal block count: 13 38 39 RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/bar3-1.proftext -o %t 40 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=DISJOINT 41 DISJOINT: foo: 42 DISJOINT: Counters: 3 43 DISJOINT: Function count: 1 44 DISJOINT: Block counts: [2, 3] 45 DISJOINT: bar: 46 DISJOINT: Counters: 3 47 DISJOINT: Function count: 1 48 DISJOINT: Block counts: [2, 3] 49 DISJOINT: Total functions: 2 50 DISJOINT: Maximum function count: 1 51 DISJOINT: Maximum internal block count: 3 52