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
49 lines
1.5 KiB
LLVM
49 lines
1.5 KiB
LLVM
; RUN: opt -passes='default<O3>' -enable-loopinterchange -disable-output \
|
|
; RUN: -disable-verify -verify-analysis-invalidation=0 \
|
|
; RUN: -debug-pass-manager=quiet %s 2>&1 | FileCheck %s
|
|
|
|
; Test the position of LoopInterchange in the pass pipeline.
|
|
|
|
; CHECK-NOT: Running pass: LoopInterchangePass
|
|
; CHECK: Running pass: ControlHeightReductionPass
|
|
; CHECK-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-NEXT: Running pass: LCSSAPass
|
|
; CHECK-NEXT: Running pass: LoopRotatePass
|
|
; CHECK-NEXT: Running pass: LoopDeletionPass
|
|
; CHECK-NEXT: Running pass: LoopRotatePass
|
|
; CHECK-NEXT: Running pass: LoopDeletionPass
|
|
; CHECK-NEXT: Running pass: LoopInterchangePass
|
|
; CHECK-NEXT: Running pass: LoopDistributePass
|
|
; CHECK-NEXT: Running pass: InjectTLIMappings
|
|
; CHECK-NEXT: Running pass: LoopVectorizePass
|
|
|
|
|
|
define void @foo(ptr %a, i32 %n) {
|
|
entry:
|
|
br label %for.i.header
|
|
|
|
for.i.header:
|
|
%i = phi i32 [ 0, %entry ], [ %i.next, %for.i.latch ]
|
|
br label %for.j
|
|
|
|
for.j:
|
|
%j = phi i32 [ 0, %for.i.header ], [ %j.next, %for.j ]
|
|
%tmp = mul i32 %i, %n
|
|
%offset = add i32 %tmp, %j
|
|
%idx = getelementptr inbounds i32, ptr %a, i32 %offset
|
|
%load = load i32, ptr %idx, align 4
|
|
%inc = add i32 %load, 1
|
|
store i32 %inc, ptr %idx, align 4
|
|
%j.next = add i32 %j, 1
|
|
%j.exit = icmp eq i32 %j.next, %n
|
|
br i1 %j.exit, label %for.i.latch, label %for.j
|
|
|
|
for.i.latch:
|
|
%i.next = add i32 %i, 1
|
|
%i.exit = icmp eq i32 %i.next, %n
|
|
br i1 %i.exit, label %for.i.header, label %exit
|
|
|
|
exit:
|
|
ret void
|
|
}
|