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
35 lines
1.5 KiB
LLVM
35 lines
1.5 KiB
LLVM
; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -disable-output 2>&1 | FileCheck %s
|
|
; TEST that A[1][0] may alias A[0][i].
|
|
target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
|
|
|
|
; CHECK: 2 no alias responses
|
|
|
|
define void @test(i32 %N) {
|
|
entry:
|
|
%X = alloca [3 x [3 x i32]] ; <ptr> [#uses=4]
|
|
%tmp.24 = icmp sgt i32 %N, 0 ; <i1> [#uses=1]
|
|
br i1 %tmp.24, label %no_exit, label %loopexit
|
|
|
|
no_exit: ; preds = %no_exit, %entry
|
|
%i.0.0 = phi i32 [ 0, %entry ], [ %inc, %no_exit ] ; <i32> [#uses=2]
|
|
%tmp.6 = getelementptr [3 x [3 x i32]], ptr %X, i32 0, i32 0, i32 %i.0.0 ; <ptr> [#uses=1]
|
|
store i32 1, ptr %tmp.6
|
|
%tmp.8 = getelementptr [3 x [3 x i32]], ptr %X, i32 0, i32 0, i32 0 ; <ptr> [#uses=1]
|
|
%tmp.9 = load i32, ptr %tmp.8 ; <i32> [#uses=1]
|
|
%tmp.11 = getelementptr [3 x [3 x i32]], ptr %X, i32 0, i32 1, i32 0 ; <ptr> [#uses=1]
|
|
%tmp.12 = load i32, ptr %tmp.11 ; <i32> [#uses=1]
|
|
%tmp.13 = add i32 %tmp.12, %tmp.9 ; <i32> [#uses=1]
|
|
%inc = add i32 %i.0.0, 1 ; <i32> [#uses=2]
|
|
%tmp.2 = icmp slt i32 %inc, %N ; <i1> [#uses=1]
|
|
br i1 %tmp.2, label %no_exit, label %loopexit
|
|
|
|
loopexit: ; preds = %no_exit, %entry
|
|
%Y.0.1 = phi i32 [ 0, %entry ], [ %tmp.13, %no_exit ] ; <i32> [#uses=1]
|
|
%tmp.4 = getelementptr [3 x [3 x i32]], ptr %X, i32 0, i32 0 ; <ptr> [#uses=1]
|
|
load [3 x i32], ptr %tmp.4
|
|
%tmp.15 = call i32 (...) @foo( ptr %tmp.4, i32 %Y.0.1 ) ; <i32> [#uses=0]
|
|
ret void
|
|
}
|
|
|
|
declare i32 @foo(...)
|