CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
94 lines
4.3 KiB
Plaintext
94 lines
4.3 KiB
Plaintext
Some very basic tests for the multiple input cases.
|
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-2.proftext -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-2.proftext %p/Inputs/foo3-1.proftext -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3
|
|
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
|
|
|
|
RUN: llvm-profdata merge %p/Inputs/empty.proftext %p/Inputs/foo3-1.proftext -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3EMPTY
|
|
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
|
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3bar3-1.proftext -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefixes=FOO3FOO3BAR3,FOO3FOO3BAR3-1
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefixes=FOO3FOO3BAR3,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]
|
|
FOO3FOO3BAR3: Total functions: 2
|
|
FOO3FOO3BAR3: Maximum function count: 7
|
|
FOO3FOO3BAR3: Maximum internal block count: 13
|
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/bar3-1.proftext -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefixes=DISJOINT,DISJOINT-1
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefixes=DISJOINT,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]
|
|
DISJOINT: Total functions: 2
|
|
DISJOINT: Maximum function count: 1
|
|
DISJOINT: Maximum internal block count: 3
|
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: -num-threads 2 -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO4
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: -j 3 -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO4
|
|
FOO4: foo:
|
|
FOO4: Counters: 3
|
|
FOO4: Function count: 4
|
|
FOO4: Block counts: [8, 12]
|
|
FOO4: Total functions: 1
|
|
FOO4: Maximum function count: 4
|
|
FOO4: Maximum internal block count: 12
|
|
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext -j 2 -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO5
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext -j 3 -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO5
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO5
|
|
RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext %p/Inputs/foo3-1.proftext \
|
|
RUN: %p/Inputs/foo3-1.proftext -j 1 -o %t
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO5
|
|
FOO5: foo:
|
|
FOO5: Counters: 3
|
|
FOO5: Function count: 5
|
|
FOO5: Block counts: [10, 15]
|
|
FOO5: Total functions: 1
|
|
FOO5: Maximum function count: 5
|
|
FOO5: Maximum internal block count: 15
|