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
2.1 KiB
LLVM
45 lines
2.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: opt < %s -disable-output "-passes=print<da>" -aa-pipeline=basic-aa -da-enable-dependence-test=all 2>&1 \
|
|
; RUN: | FileCheck %s
|
|
|
|
; Check that the testcase does not crash the compiler.
|
|
; See https://github.com/llvm/llvm-project/issues/51512 for details.
|
|
|
|
define void @foo() {
|
|
; CHECK-LABEL: 'foo'
|
|
; CHECK-NEXT: Src: store i32 42, ptr %getelementptr, align 1 --> Dst: store i32 42, ptr %getelementptr, align 1
|
|
; CHECK-NEXT: da analyze - output [0 S]!
|
|
; CHECK-NEXT: Src: store i32 42, ptr %getelementptr, align 1 --> Dst: store i32 0, ptr %getelementptr5, align 1
|
|
; CHECK-NEXT: da analyze - output [0 <=|<]!
|
|
; CHECK-NEXT: Src: store i32 0, ptr %getelementptr5, align 1 --> Dst: store i32 0, ptr %getelementptr5, align 1
|
|
; CHECK-NEXT: da analyze - none!
|
|
;
|
|
bb:
|
|
%alloca = alloca [2 x [5 x i32]], align 1
|
|
br label %outerloop.header
|
|
|
|
outerloop.header: ; preds = %outerloop.latch, %bb
|
|
%iv.outerloop = phi i32 [ 0, %bb ], [ %iv.outerloop.next, %outerloop.latch ]
|
|
%trunc = trunc i32 %iv.outerloop to i16
|
|
%add = add i16 %trunc, 3
|
|
%getelementptr = getelementptr inbounds [2 x [5 x i32]], ptr %alloca, i16 0, i16 %trunc, i16 %add
|
|
br label %innerloop
|
|
|
|
innerloop: ; preds = %innerloop, %outerloop.header
|
|
%iv.innerloop = phi i32 [ 0, %outerloop.header ], [ %iv.innerloop.next, %innerloop ]
|
|
store i32 42, ptr %getelementptr, align 1
|
|
%trunc4 = trunc i32 %iv.innerloop to i16
|
|
%getelementptr5 = getelementptr inbounds [2 x [5 x i32]], ptr %alloca, i16 0, i16 %trunc4, i16 %add
|
|
store i32 0, ptr %getelementptr5, align 1
|
|
%iv.innerloop.next = add nuw nsw i32 %iv.innerloop, 1
|
|
br i1 false, label %innerloop, label %outerloop.latch
|
|
|
|
outerloop.latch: ; preds = %innerloop
|
|
%iv.outerloop.next = add nuw nsw i32 %iv.outerloop, 1
|
|
%icmp = icmp eq i32 %iv.outerloop, 0
|
|
br i1 %icmp, label %outerloop.header, label %bb9
|
|
|
|
bb9: ; preds = %outerloop.latch
|
|
ret void
|
|
}
|