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
45 lines
1.3 KiB
LLVM
45 lines
1.3 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -S -passes=mergeicmps < %s | FileCheck %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
@c = external global i32, align 4
|
|
|
|
define i1 @d() {
|
|
; CHECK-LABEL: @d(
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: [[G:%.*]] = alloca [8 x i64], align 16
|
|
; CHECK-NEXT: [[V1:%.*]] = load i64, ptr [[G]], align 8
|
|
; CHECK-NEXT: [[V2:%.*]] = load i64, ptr [[G]], align 8
|
|
; CHECK-NEXT: [[CMP:%.*]] = icmp eq i64 [[V1]], [[V2]]
|
|
; CHECK-NEXT: br label [[SPLIT:%.*]]
|
|
; CHECK: split:
|
|
; CHECK-NEXT: [[X:%.*]] = load volatile i32, ptr @c, align 4
|
|
; CHECK-NEXT: br i1 [[CMP]], label [[IF:%.*]], label [[EXIT:%.*]]
|
|
; CHECK: if:
|
|
; CHECK-NEXT: [[TOBOOL:%.*]] = icmp ne i32 [[X]], 0
|
|
; CHECK-NEXT: br label [[EXIT]]
|
|
; CHECK: exit:
|
|
; CHECK-NEXT: [[P:%.*]] = phi i1 [ false, [[SPLIT]] ], [ [[TOBOOL]], [[IF]] ]
|
|
; CHECK-NEXT: ret i1 [[P]]
|
|
;
|
|
entry:
|
|
%g = alloca [8 x i64], align 16
|
|
%v1 = load i64, ptr %g, align 8
|
|
%v2 = load i64, ptr %g, align 8
|
|
%cmp = icmp eq i64 %v1, %v2
|
|
br label %split
|
|
|
|
split:
|
|
%x = load volatile i32, ptr @c, align 4
|
|
br i1 %cmp, label %if, label %exit
|
|
|
|
if:
|
|
%tobool = icmp ne i32 %x, 0
|
|
br label %exit
|
|
|
|
exit:
|
|
%p = phi i1 [ false, %split ], [ %tobool, %if ]
|
|
ret i1 %p
|
|
}
|