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
48 lines
1.2 KiB
LLVM
48 lines
1.2 KiB
LLVM
; RUN: opt -disable-output -passes="loop-mssa(licm,loop-rotate,licm,simple-loop-unswitch<nontrivial>),print<memoryssa>" -verify-memoryssa < %s 2>&1 | FileCheck %s
|
|
|
|
; Make sure that we update MSSA correctly in this case.
|
|
|
|
; CHECK-LABEL: MemorySSA for function: test
|
|
; CHECK: for.header2.preheader:
|
|
; CHECK-NEXT: 11 = MemoryPhi({entry.split,liveOnEntry},{for.header,9})
|
|
; CHECK: for.body.us:
|
|
; CHECK-NEXT: 7 = MemoryPhi({for.header2.preheader.split.us,11},{for.header2.us,9})
|
|
; CHECK-NEXT: 8 = MemoryDef(7)->7
|
|
; CHECK-NEXT: store i32 0, ptr %p, align 4
|
|
; CHECK-NEXT: 9 = MemoryDef(8)->8
|
|
; CHECK-NEXT: store i8 0, ptr %p, align 1
|
|
|
|
define void @test(ptr %p, i1 %cond) {
|
|
entry:
|
|
br label %for.header
|
|
|
|
for.header:
|
|
br i1 false, label %exit.loopexit1, label %for.header2.preheader
|
|
|
|
for.header2.preheader:
|
|
br label %for.body
|
|
|
|
for.header2:
|
|
br i1 false, label %for.latch, label %for.body
|
|
|
|
for.body:
|
|
store i32 0, ptr %p, align 4
|
|
store i8 0, ptr %p, align 1
|
|
br i1 %cond, label %for.header2, label %exit.loopexit
|
|
|
|
for.latch:
|
|
br i1 false, label %for.inc, label %exit.loopexit1
|
|
|
|
for.inc:
|
|
br label %for.header
|
|
|
|
exit.loopexit:
|
|
br label %exit
|
|
|
|
exit.loopexit1:
|
|
br label %exit
|
|
|
|
exit:
|
|
ret void
|
|
}
|