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
73 lines
2.5 KiB
LLVM
73 lines
2.5 KiB
LLVM
; RUN: opt -disable-output -aa-pipeline=basic-aa -passes='loop-mssa(licm),print<memoryssa>' < %s 2>&1 | FileCheck %s
|
|
|
|
|
|
@a = external dso_local global i16, align 1
|
|
@c = external dso_local global i16, align 1
|
|
|
|
; CHECK-LABEL: @main()
|
|
|
|
; CHECK: entry:
|
|
; CHECK-NEXT: %res.addr.i = alloca i16
|
|
; CHECK-NEXT: ; MemoryUse(liveOnEntry)
|
|
; CHECK-NEXT: %c.promoted = load i16, ptr @c
|
|
; CHECK-NEXT: br label %for.cond.i
|
|
|
|
; CHECK: for.cond.i:
|
|
; CHECK-NEXT: ; [[NO5:.*]] = MemoryPhi({entry,liveOnEntry},{f.exit.i,[[NO5]]})
|
|
; CHECK-NEXT: %inc.i1 = phi i16 [ %inc.i, %f.exit.i ], [ %c.promoted, %entry ]
|
|
; CHECK-NEXT: %inc.i = add nsw i16 %inc.i1, 1
|
|
; CHECK-NEXT: br i1 false, label %f.exit.thread.i, label %f.exit.i
|
|
|
|
; CHECK: f.exit.thread.i:
|
|
; CHECK-NEXT: %inc.i.lcssa = phi i16 [ %inc.i, %for.cond.i ]
|
|
; CHECK-NEXT: ; [[NO6:.*]] = MemoryDef([[NO5]])
|
|
; CHECK-NEXT: store i16 %inc.i.lcssa, ptr @c, align 1
|
|
; CHECK-NEXT: ; [[NO2:.*]] = MemoryDef([[NO6]])
|
|
; CHECK-NEXT: store i16 1, ptr @a, align 1
|
|
; CHECK-NEXT: ; MemoryUse([[NO6]])
|
|
; CHECK-NEXT: %tmp2 = load i16, ptr @c, align 1
|
|
; CHECK-NEXT: br label %g.exit
|
|
|
|
; CHECK: f.exit.i
|
|
; CHECK-NEXT: br i1 false, label %g.exit.loopexit, label %for.cond.i
|
|
|
|
; CHECK: g.exit.loopexit:
|
|
; CHECK-NEXT: %inc.i.lcssa2 = phi i16 [ %inc.i, %f.exit.i ]
|
|
; CHECK-NEXT: ; [[NO7:.*]] = MemoryDef([[NO5]])
|
|
; CHECK-NEXT: store i16 %inc.i.lcssa2, ptr @c, align 1
|
|
; CHECK-NEXT: br label %g.exit
|
|
|
|
; CHECK: g.exit
|
|
; CHECK-NEXT: ; [[NO4:.*]] = MemoryPhi({f.exit.thread.i,[[NO2]]},{g.exit.loopexit,[[NO7]]})
|
|
; CHECK-NEXT: ; MemoryUse([[NO4]])
|
|
; CHECK-NEXT: %tmp1 = load i16, ptr @c, align 1
|
|
; CHECK-NEXT: ; [[NO3:.*]] = MemoryDef([[NO4]])
|
|
; CHECK-NEXT: store i16 %tmp1, ptr %res.addr.i, align 1
|
|
; CHECK-NEXT: ret void
|
|
|
|
define dso_local void @main() {
|
|
entry:
|
|
%res.addr.i = alloca i16, align 1
|
|
br label %for.cond.i
|
|
|
|
for.cond.i: ; preds = %f.exit.i, %entry
|
|
%tmp0 = load i16, ptr @c, align 1
|
|
%inc.i = add nsw i16 %tmp0, 1
|
|
store i16 %inc.i, ptr @c, align 1
|
|
br i1 false, label %f.exit.thread.i, label %f.exit.i
|
|
|
|
f.exit.thread.i: ; preds = %for.cond.i
|
|
store i16 1, ptr @a, align 1
|
|
%tmp2 = load i16, ptr @c, align 1
|
|
br label %g.exit
|
|
|
|
f.exit.i: ; preds = %for.cond.i
|
|
br i1 false, label %g.exit, label %for.cond.i
|
|
|
|
g.exit: ; preds = %f.exit.i, %f.exit.thread.i
|
|
%tmp1 = load i16, ptr @c, align 1
|
|
store i16 %tmp1, ptr %res.addr.i, align 1
|
|
ret void
|
|
}
|
|
|