2014-07-30 06:29:23 +08:00
|
|
|
Some very basic tests for the multiple input cases.
|
|
|
|
|
2014-07-31 07:02:01 +08:00
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-2.proftext -o %t
|
2014-04-19 05:48:40 +08:00
|
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3
|
2014-07-31 07:02:01 +08:00
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-2.proftext %p/Inputs/foo3-1.proftext -o %t
|
2014-04-19 05:48:40 +08:00
|
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3
|
2014-03-22 01:46:22 +08:00
|
|
|
FOO3: foo:
|
|
|
|
FOO3: Counters: 3
|
|
|
|
FOO3: Function count: 8
|
|
|
|
FOO3: Block counts: [7, 6]
|
|
|
|
FOO3: Total functions: 1
|
|
|
|
FOO3: Maximum function count: 8
|
|
|
|
FOO3: Maximum internal block count: 7
|
2014-03-13 06:00:57 +08:00
|
|
|
|
2014-07-31 07:02:01 +08:00
|
|
|
RUN: llvm-profdata merge %p/Inputs/empty.proftext %p/Inputs/foo3-1.proftext -o %t
|
2014-04-19 05:48:40 +08:00
|
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3EMPTY
|
2014-03-22 01:46:22 +08:00
|
|
|
FOO3EMPTY: foo:
|
|
|
|
FOO3EMPTY: Counters: 3
|
|
|
|
FOO3EMPTY: Function count: 1
|
|
|
|
FOO3EMPTY: Block counts: [2, 3]
|
|
|
|
FOO3EMPTY: Total functions: 1
|
|
|
|
FOO3EMPTY: Maximum function count: 1
|
|
|
|
FOO3EMPTY: Maximum internal block count: 3
|
|
|
|
|
2014-07-31 07:02:01 +08:00
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3bar3-1.proftext -o %t
|
2016-03-26 10:02:59 +08:00
|
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3FOO3BAR3 --check-prefix=FOO3FOO3BAR3-1
|
|
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3FOO3BAR3 --check-prefix=FOO3FOO3BAR3-2
|
|
|
|
FOO3FOO3BAR3-1: foo:
|
|
|
|
FOO3FOO3BAR3-1: Counters: 3
|
|
|
|
FOO3FOO3BAR3-1: Function count: 3
|
|
|
|
FOO3FOO3BAR3-1: Block counts: [5, 8]
|
|
|
|
FOO3FOO3BAR3-2: bar:
|
|
|
|
FOO3FOO3BAR3-2: Counters: 3
|
|
|
|
FOO3FOO3BAR3-2: Function count: 7
|
|
|
|
FOO3FOO3BAR3-2: Block counts: [11, 13]
|
2014-03-22 01:46:22 +08:00
|
|
|
FOO3FOO3BAR3: Total functions: 2
|
|
|
|
FOO3FOO3BAR3: Maximum function count: 7
|
|
|
|
FOO3FOO3BAR3: Maximum internal block count: 13
|
|
|
|
|
2014-07-31 07:02:01 +08:00
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/bar3-1.proftext -o %t
|
2016-03-26 10:02:59 +08:00
|
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=DISJOINT --check-prefix=DISJOINT-1
|
|
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=DISJOINT --check-prefix=DISJOINT-2
|
|
|
|
DISJOINT-1: foo:
|
|
|
|
DISJOINT-1: Counters: 3
|
|
|
|
DISJOINT-1: Function count: 1
|
|
|
|
DISJOINT-1: Block counts: [2, 3]
|
|
|
|
DISJOINT-2: bar:
|
|
|
|
DISJOINT-2: Counters: 3
|
|
|
|
DISJOINT-2: Function count: 1
|
|
|
|
DISJOINT-2: Block counts: [2, 3]
|
2014-03-22 01:46:22 +08:00
|
|
|
DISJOINT: Total functions: 2
|
|
|
|
DISJOINT: Maximum function count: 1
|
|
|
|
DISJOINT: Maximum internal block count: 3
|