Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-reduce/reduce-bb-unreachable-does-not-dominate-error3.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

72 lines
2.0 KiB
LLVM

; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=unreachable-basic-blocks,basic-blocks --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
; RUN: FileCheck %s < %t
; CHECK-INTERESTINGNESS: store i32 0,
; CHECK-INTERESTINGNESS: store i32 1,
; CHECK: bb:
; CHECK-NEXT: %tmp = icmp eq i8 0, 0
; CHECK-NEXT: %tmp12 = load i32,
; CHECK-NEXT: %tmp13 = load i32,
; CHECK-NEXT: br label %bb14
; CHECK: bb14:
; CHECK-NEXT: switch i32 %tmp12, label %bb14 [
; CHECK-NEXT: i32 2, label %bb14
; CHECK-NEXT: i32 1, label %bb19
; CHECK-NEXT: ]
; CHECK: bb19:
; CHECK-NEXT: switch i32 %tmp13, label %bb14 [
; CHECK-NEXT: i32 2, label %bb21
; CHECK-NEXT: i32 1, label %bb20
; CHECK-NEXT: ]
; CHECK: bb20:
; CHECK-NEXT: store i32 0,
; CHECK-NEXT: br label %bb14
; CHECK: bb21:
; CHECK-NEXT: store i32 1,
; CHECK-NEXT: br label %bb14
define void @snork() {
bb:
%tmp = icmp eq i8 0, 0
%tmp12 = load i32, ptr addrspace(4) inttoptr (i64 3016 to ptr addrspace(4)), align 8
%tmp13 = load i32, ptr addrspace(4) null, align 8
br label %bb14
bb14: ; preds = %bb21, %bb20, %bb19, %bb14, %bb
switch i32 %tmp12, label %bb22 [
i32 2, label %bb14
i32 1, label %bb19
]
bb15: ; preds = %bb17
%tmp16 = fadd contract double %tmp18, 1.000000e+00
unreachable
bb17: ; preds = %bb17
%tmp18 = fadd contract double 0.000000e+00, 0.000000e+00
br i1 false, label %bb15, label %bb17
bb19: ; preds = %bb14
switch i32 %tmp13, label %bb14 [
i32 2, label %bb21
i32 1, label %bb20
]
bb20: ; preds = %bb19
store i32 0, ptr addrspace(3) null, align 4
br label %bb14
bb21: ; preds = %bb19
store i32 1, ptr addrspace(3) null, align 4
br label %bb14
bb22: ; preds = %bb14
unreachable
}