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
79 lines
2.3 KiB
LLVM
79 lines
2.3 KiB
LLVM
; RUN: opt %loadNPMPolly -polly-reschedule=0 -polly-loopfusion-greedy=1 -polly-postopts=0 '-passes=polly-custom<opt-isl>' -polly-print-opt-isl -disable-output < %s | FileCheck %s
|
|
; RUN: opt %loadNPMPolly -polly-reschedule=1 -polly-loopfusion-greedy=1 -polly-postopts=0 '-passes=polly-custom<opt-isl>' -polly-print-opt-isl -disable-output < %s | FileCheck %s
|
|
|
|
define void @func(i32 %n, ptr noalias nonnull %A, ptr noalias nonnull %B) {
|
|
entry:
|
|
br label %outer.for1
|
|
|
|
outer.for1:
|
|
%k1 = phi i32 [0, %entry], [%k1.inc, %outer.inc1]
|
|
%k1.cmp = icmp slt i32 %k1, %n
|
|
br i1 %k1.cmp, label %for1, label %outer.exit1
|
|
|
|
for1:
|
|
%j1 = phi i32 [0, %outer.for1], [%j1.inc, %inc1]
|
|
%j1.cmp = icmp slt i32 %j1, %n
|
|
br i1 %j1.cmp, label %body1, label %exit1
|
|
|
|
body1:
|
|
%arrayidx1 = getelementptr inbounds [1024 x double], ptr %A, i32 %k1, i32 %j1
|
|
store double 21.0, ptr %arrayidx1
|
|
br label %inc1
|
|
|
|
inc1:
|
|
%j1.inc = add nuw nsw i32 %j1, 1
|
|
br label %for1
|
|
|
|
exit1:
|
|
br label %outer.inc1
|
|
|
|
outer.inc1:
|
|
%k1.inc = add nuw nsw i32 %k1, 1
|
|
br label %outer.for1
|
|
|
|
outer.exit1:
|
|
br label %outer.for2
|
|
|
|
outer.for2:
|
|
%k2 = phi i32 [0, %outer.exit1], [%k2.inc, %outer.inc2]
|
|
%k2.cmp = icmp slt i32 %k2, %n
|
|
br i1 %k2.cmp, label %for2, label %outer.exit2
|
|
|
|
for2:
|
|
%j2 = phi i32 [0, %outer.for2], [%j2.inc, %inc2]
|
|
%j2.cmp = icmp slt i32 %j2, %n
|
|
br i1 %j2.cmp, label %body2, label %exit2
|
|
|
|
body2:
|
|
%arrayidx2 = getelementptr inbounds [1024 x double], ptr %A, i32 %k2, i32 %j2
|
|
store double 42.0, ptr %arrayidx2
|
|
br label %inc2
|
|
|
|
inc2:
|
|
%j2.inc = add nuw nsw i32 %j2, 1
|
|
br label %for2
|
|
|
|
exit2:
|
|
br label %outer.inc2
|
|
|
|
outer.inc2:
|
|
%k2.inc = add nuw nsw i32 %k2, 1
|
|
br label %outer.for2
|
|
|
|
outer.exit2:
|
|
br label %return
|
|
|
|
return:
|
|
ret void
|
|
}
|
|
|
|
|
|
; CHECK: Calculated schedule:
|
|
; CHECK-NEXT: domain: "[n] -> { Stmt_body2[i0, i1] : 0 <= i0 < n and 0 <= i1 < n; Stmt_body1[i0, i1] : 0 <= i0 < n and 0 <= i1 < n }"
|
|
; CHECK-NEXT: child:
|
|
; CHECK-NEXT: schedule: "[n] -> [{ Stmt_body2[i0, i1] -> [(i0)]; Stmt_body1[i0, i1] -> [(i0)] }, { Stmt_body2[i0, i1] -> [(i1)]; Stmt_body1[i0, i1] -> [(i1)] }]"
|
|
; CHECK-NEXT: child:
|
|
; CHECK-NEXT: sequence:
|
|
; CHECK-NEXT: - filter: "[n] -> { Stmt_body1[i0, i1] }"
|
|
; CHECK-NEXT: - filter: "[n] -> { Stmt_body2[i0, i1] }"
|