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
60 lines
1.9 KiB
LLVM
60 lines
1.9 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
|
|
; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
|
|
|
|
declare void @set_value(ptr)
|
|
|
|
declare void @bar()
|
|
|
|
define void @foo(i1 %0) {
|
|
; CHECK-LABEL: define void @foo(
|
|
; CHECK-SAME: i1 [[TMP0:%.*]]) {
|
|
; CHECK-NEXT: start:
|
|
; CHECK-NEXT: [[V:%.*]] = alloca i64, align 8
|
|
; CHECK-NEXT: call void @set_value(ptr [[V]])
|
|
; CHECK-NEXT: [[L1:%.*]] = load i64, ptr [[V]], align 8
|
|
; CHECK-NEXT: br i1 [[TMP0]], label [[BB0:%.*]], label [[BB2:%.*]]
|
|
; CHECK: bb0:
|
|
; CHECK-NEXT: [[C1:%.*]] = icmp eq i64 [[L1]], 0
|
|
; CHECK-NEXT: br i1 [[C1]], label [[BB2_THREAD:%.*]], label [[BB2]]
|
|
; CHECK: bb2.thread:
|
|
; CHECK-NEXT: store i64 0, ptr [[V]], align 8
|
|
; CHECK-NEXT: br label [[BB4:%.*]]
|
|
; CHECK: bb2:
|
|
; CHECK-NEXT: [[L2:%.*]] = phi i64 [ [[L1]], [[START:%.*]] ], [ [[L1]], [[BB0]] ]
|
|
; CHECK-NEXT: [[TMP1:%.*]] = icmp eq i64 [[L2]], 2
|
|
; CHECK-NEXT: br i1 [[TMP1]], label [[BB3:%.*]], label [[BB4]]
|
|
; CHECK: bb3:
|
|
; CHECK-NEXT: call void @bar()
|
|
; CHECK-NEXT: ret void
|
|
; CHECK: bb4:
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
start:
|
|
%v = alloca i64, align 8
|
|
call void @set_value(ptr %v)
|
|
%l1 = load i64, ptr %v, align 8, !range !0
|
|
br i1 %0, label %bb0, label %bb2
|
|
|
|
bb0: ; preds = %start
|
|
%c1 = icmp eq i64 %l1, 0
|
|
br i1 %c1, label %bb1, label %bb2
|
|
|
|
bb1: ; preds = %bb0
|
|
store i64 0, ptr %v, align 8
|
|
br label %bb2
|
|
|
|
bb2: ; preds = %bb1, %bb0, %start
|
|
%l2 = load i64, ptr %v, align 8
|
|
%1 = icmp eq i64 %l2, 2
|
|
br i1 %1, label %bb3, label %bb4
|
|
|
|
bb3: ; preds = %bb2
|
|
call void @bar()
|
|
ret void
|
|
|
|
bb4: ; preds = %bb2
|
|
ret void
|
|
}
|
|
|
|
!0 = !{i64 0, i64 2}
|