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
141 lines
4.9 KiB
LLVM
141 lines
4.9 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
|
|
; RUN: opt -S -passes=gvn < %s | FileCheck %s
|
|
|
|
; Make sure deduplicated phi nodes are removed from the VN map.
|
|
define i64 @f2(ptr %arg) {
|
|
; CHECK-LABEL: define i64 @f2(
|
|
; CHECK-SAME: ptr [[ARG:%.*]]) {
|
|
; CHECK-NEXT: BB:
|
|
; CHECK-NEXT: store i1 false, ptr [[ARG]], align 1
|
|
; CHECK-NEXT: br label [[BB2D:%.*]]
|
|
; CHECK: BB2a:
|
|
; CHECK-NEXT: br label [[BB2B:%.*]]
|
|
; CHECK: BB2b:
|
|
; CHECK-NEXT: br label [[BB2C:%.*]]
|
|
; CHECK: BB2c:
|
|
; CHECK-NEXT: [[AZ2:%.*]] = phi i1 [ true, [[BB2B]] ], [ [[AZ:%.*]], [[BB2D]] ]
|
|
; CHECK-NEXT: [[DOTPHI_TRANS_INSERT:%.*]] = sext i1 [[AZ2]] to i64
|
|
; CHECK-NEXT: [[GEP2_PHI_TRANS_INSERT:%.*]] = getelementptr i1, ptr [[ARG]], i64 [[DOTPHI_TRANS_INSERT]]
|
|
; CHECK-NEXT: [[L93_PRE:%.*]] = load i1, ptr [[GEP2_PHI_TRANS_INSERT]], align 1
|
|
; CHECK-NEXT: br label [[BB2D]]
|
|
; CHECK: BB2d:
|
|
; CHECK-NEXT: [[AZ]] = phi i1 [ [[AZ2]], [[BB2C]] ], [ false, [[BB:%.*]] ]
|
|
; CHECK-NEXT: [[L93:%.*]] = phi i1 [ [[L93_PRE]], [[BB2C]] ], [ false, [[BB]] ]
|
|
; CHECK-NEXT: [[TMP0:%.*]] = sext i1 [[AZ]] to i64
|
|
; CHECK-NEXT: [[GEP2:%.*]] = getelementptr i1, ptr [[ARG]], i64 [[TMP0]]
|
|
; CHECK-NEXT: store i1 [[AZ]], ptr [[ARG]], align 2
|
|
; CHECK-NEXT: br i1 [[L93]], label [[BB2C]], label [[BB1E:%.*]]
|
|
; CHECK: BB1e:
|
|
; CHECK-NEXT: br i1 [[AZ]], label [[BB2F:%.*]], label [[BB4:%.*]]
|
|
; CHECK: BB2f:
|
|
; CHECK-NEXT: store i1 true, ptr [[ARG]], align 2
|
|
; CHECK-NEXT: br label [[BB2B]]
|
|
; CHECK: BB4:
|
|
; CHECK-NEXT: br label [[BB4]]
|
|
;
|
|
BB:
|
|
store i1 false, ptr %arg, align 1
|
|
br label %BB2d
|
|
|
|
BB2a: ; No predecessors!
|
|
br label %BB2b
|
|
|
|
BB2b: ; preds = %BB2f, %BB2a
|
|
br label %BB2c
|
|
|
|
BB2c: ; preds = %BB2d, %BB2b
|
|
%0 = phi i1 [ true, %BB2b ], [ %1, %BB2d ]
|
|
br label %BB2d
|
|
|
|
BB2d: ; preds = %BB2c, %BB
|
|
%1 = phi i1 [ %0, %BB2c ], [ false, %BB ]
|
|
%2 = sext i1 %1 to i64
|
|
%gep2 = getelementptr i1, ptr %arg, i64 %2
|
|
%L93 = load i1, ptr %gep2, align 1
|
|
%Az = load i1, ptr %arg, align 2
|
|
store i1 %1, ptr %arg, align 2
|
|
br i1 %L93, label %BB2c, label %BB1e
|
|
|
|
BB1e: ; preds = %BB2d
|
|
br i1 %Az, label %BB2f, label %BB4
|
|
|
|
BB2f: ; preds = %BB1e
|
|
store i1 true, ptr %arg, align 2
|
|
br label %BB2b
|
|
|
|
BB4: ; preds = %BB1e, %BB4
|
|
br label %BB4
|
|
|
|
; uselistorder directives
|
|
uselistorder label %BB4, { 1, 0 }
|
|
}
|
|
|
|
; Make sure deduplicated phi nodes are removed from the VN map. Make
|
|
; sure there is no assert on attempt to use ConstantData use lists.
|
|
define i64 @f_null() {
|
|
; CHECK-LABEL: define i64 @f_null() {
|
|
; CHECK-NEXT: BB:
|
|
; CHECK-NEXT: store i1 false, ptr null, align 1
|
|
; CHECK-NEXT: br label [[BB2D:%.*]]
|
|
; CHECK: BB2a:
|
|
; CHECK-NEXT: br label [[BB2B:%.*]]
|
|
; CHECK: BB2b:
|
|
; CHECK-NEXT: br label [[BB2C:%.*]]
|
|
; CHECK: BB2c:
|
|
; CHECK-NEXT: [[AZ2:%.*]] = phi i1 [ true, [[BB2B]] ], [ [[AZ:%.*]], [[BB2D]] ]
|
|
; CHECK-NEXT: [[DOTPHI_TRANS_INSERT:%.*]] = sext i1 [[AZ2]] to i64
|
|
; CHECK-NEXT: [[GEP2_PHI_TRANS_INSERT:%.*]] = getelementptr i1, ptr null, i64 [[DOTPHI_TRANS_INSERT]]
|
|
; CHECK-NEXT: [[L93_PRE:%.*]] = load i1, ptr [[GEP2_PHI_TRANS_INSERT]], align 1
|
|
; CHECK-NEXT: br label [[BB2D]]
|
|
; CHECK: BB2d:
|
|
; CHECK-NEXT: [[AZ]] = phi i1 [ [[AZ2]], [[BB2C]] ], [ false, [[BB:%.*]] ]
|
|
; CHECK-NEXT: [[L93:%.*]] = phi i1 [ [[L93_PRE]], [[BB2C]] ], [ false, [[BB]] ]
|
|
; CHECK-NEXT: [[TMP0:%.*]] = sext i1 [[AZ]] to i64
|
|
; CHECK-NEXT: [[GEP2:%.*]] = getelementptr i1, ptr null, i64 [[TMP0]]
|
|
; CHECK-NEXT: store i1 [[AZ]], ptr null, align 2
|
|
; CHECK-NEXT: br i1 [[L93]], label [[BB2C]], label [[BB1E:%.*]]
|
|
; CHECK: BB1e:
|
|
; CHECK-NEXT: br i1 [[AZ]], label [[BB2F:%.*]], label [[BB4:%.*]]
|
|
; CHECK: BB2f:
|
|
; CHECK-NEXT: store i1 true, ptr null, align 2
|
|
; CHECK-NEXT: br label [[BB2B]]
|
|
; CHECK: BB4:
|
|
; CHECK-NEXT: br label [[BB4]]
|
|
;
|
|
BB:
|
|
store i1 false, ptr null, align 1
|
|
br label %BB2d
|
|
|
|
BB2a: ; No predecessors!
|
|
br label %BB2b
|
|
|
|
BB2b: ; preds = %BB2f, %BB2a
|
|
br label %BB2c
|
|
|
|
BB2c: ; preds = %BB2d, %BB2b
|
|
%0 = phi i1 [ true, %BB2b ], [ %1, %BB2d ]
|
|
br label %BB2d
|
|
|
|
BB2d: ; preds = %BB2c, %BB
|
|
%1 = phi i1 [ %0, %BB2c ], [ false, %BB ]
|
|
%2 = sext i1 %1 to i64
|
|
%gep2 = getelementptr i1, ptr null, i64 %2
|
|
%L93 = load i1, ptr %gep2, align 1
|
|
%Az = load i1, ptr null, align 2
|
|
store i1 %1, ptr null, align 2
|
|
br i1 %L93, label %BB2c, label %BB1e
|
|
|
|
BB1e: ; preds = %BB2d
|
|
br i1 %Az, label %BB2f, label %BB4
|
|
|
|
BB2f: ; preds = %BB1e
|
|
store i1 true, ptr null, align 2
|
|
br label %BB2b
|
|
|
|
BB4: ; preds = %BB1e, %BB4
|
|
br label %BB4
|
|
|
|
; uselistorder directives
|
|
uselistorder label %BB4, { 1, 0 }
|
|
}
|