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
44 lines
1.1 KiB
LLVM
44 lines
1.1 KiB
LLVM
; RUN: opt < %s -disable-output -passes="print<block-freq>" 2>&1 | FileCheck %s
|
|
; Sanity check precision for small-ish min/max spread.
|
|
|
|
@g = global i32 0
|
|
|
|
; CHECK-LABEL: block-frequency-info: func0
|
|
; CHECK: - entry: float = 1.0, {{.*}}, count = 1000
|
|
; CHECK: - cmp0_true: float = 0.4, {{.*}}, count = 400
|
|
; CHECK: - cmp0_false: float = 0.6, {{.*}}, count = 600
|
|
; CHECK: - cmp1_true: float = 0.1, {{.*}}, count = 100
|
|
; CHECK: - cmp1_false: float = 0.3, {{.*}}, count = 300
|
|
; CHECK: - join: float = 1.0, {{.*}}, count = 1000
|
|
|
|
define void @func0(i32 %a0, i32 %a1) !prof !0 {
|
|
entry:
|
|
%cmp0 = icmp ne i32 %a0, 0
|
|
br i1 %cmp0, label %cmp0_true, label %cmp0_false, !prof !1
|
|
|
|
cmp0_true:
|
|
store volatile i32 1, ptr @g
|
|
%cmp1 = icmp ne i32 %a1, 0
|
|
br i1 %cmp1, label %cmp1_true, label %cmp1_false, !prof !2
|
|
|
|
cmp0_false:
|
|
store volatile i32 2, ptr @g
|
|
br label %join
|
|
|
|
cmp1_true:
|
|
store volatile i32 3, ptr @g
|
|
br label %join
|
|
|
|
cmp1_false:
|
|
store volatile i32 4, ptr @g
|
|
br label %join
|
|
|
|
join:
|
|
store volatile i32 5, ptr @g
|
|
ret void
|
|
}
|
|
|
|
!0 = !{!"function_entry_count", i64 1000}
|
|
!1 = !{!"branch_weights", i32 400, i32 600}
|
|
!2 = !{!"branch_weights", i32 1, i32 3}
|