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
75 lines
3.2 KiB
LLVM
75 lines
3.2 KiB
LLVM
; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s | FileCheck %s --check-prefix=AFFINE
|
|
; RUN: opt %loadNPMPolly -polly-allow-nonaffine '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s | FileCheck %s --check-prefix=NONAFFINE
|
|
|
|
; The SCoP contains a loop with multiple exit blocks (BBs after leaving
|
|
; the loop). The current implementation of deriving their domain derives
|
|
; only a common domain for all of the exit blocks. We disabled loops with
|
|
; multiple exit blocks until this is fixed.
|
|
; XFAIL: *
|
|
|
|
; The loop for.body => for.inc has an unpredictable iteration count could due to
|
|
; the undef start value that it is compared to. Therefore the array element
|
|
; %arrayidx101 that depends on that exit value cannot be affine.
|
|
; Derived from test-suite/MultiSource/Benchmarks/BitBench/uuencode/uuencode.c
|
|
|
|
define void @encode_line(ptr nocapture readonly %input, i32 %octets, i64 %p) {
|
|
entry:
|
|
br i1 undef, label %for.body, label %for.end
|
|
|
|
for.body:
|
|
%indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ %p, %entry ]
|
|
%octets.addr.02 = phi i32 [ undef, %for.inc ], [ %octets, %entry ]
|
|
br i1 false, label %for.inc, label %if.else
|
|
|
|
if.else:
|
|
%cond = icmp eq i32 %octets.addr.02, 2
|
|
br i1 %cond, label %if.then84, label %for.end
|
|
|
|
if.then84:
|
|
%0 = add nsw i64 %indvars.iv, 1
|
|
%arrayidx101 = getelementptr inbounds i8, ptr %input, i64 %0
|
|
store i8 42, ptr %arrayidx101, align 1
|
|
br label %for.end
|
|
|
|
for.inc:
|
|
%cmp = icmp sgt i32 %octets.addr.02, 3
|
|
%indvars.iv.next = add nsw i64 %indvars.iv, 3
|
|
br i1 %cmp, label %for.body, label %for.end
|
|
|
|
for.end:
|
|
ret void
|
|
}
|
|
|
|
; AFFINE: Region: %if.else---%for.end
|
|
|
|
; AFFINE: Statements {
|
|
; AFFINE-NEXT: Stmt_if_then84
|
|
; AFFINE-NEXT: Domain :=
|
|
; AFFINE-NEXT: [octets, p_1, p] -> { Stmt_if_then84[] : octets = 2 };
|
|
; AFFINE-NEXT: Schedule :=
|
|
; AFFINE-NEXT: [octets, p_1, p] -> { Stmt_if_then84[] -> [] };
|
|
; AFFINE-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0]
|
|
; AFFINE-NEXT: [octets, p_1, p] -> { Stmt_if_then84[] -> MemRef_input[1 + p] };
|
|
; AFFINE-NEXT: }
|
|
|
|
; NONAFFINE: Region: %for.body---%for.end
|
|
|
|
; NONAFFINE: Statements {
|
|
; NONAFFINE-NEXT: Stmt_for_body
|
|
; NONAFFINE-NEXT: Domain :=
|
|
; NONAFFINE-NEXT: [octets] -> { Stmt_for_body[0] };
|
|
; NONAFFINE-NEXT: Schedule :=
|
|
; NONAFFINE-NEXT: [octets] -> { Stmt_for_body[i0] -> [0, 0] };
|
|
; NONAFFINE-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1]
|
|
; NONAFFINE-NEXT: [octets] -> { Stmt_for_body[i0] -> MemRef_indvars_iv[] };
|
|
; NONAFFINE-NEXT: Stmt_if_then84
|
|
; NONAFFINE-NEXT: Domain :=
|
|
; NONAFFINE-NEXT: [octets] -> { Stmt_if_then84[] : octets = 2 };
|
|
; NONAFFINE-NEXT: Schedule :=
|
|
; NONAFFINE-NEXT: [octets] -> { Stmt_if_then84[] -> [1, 0] };
|
|
; NONAFFINE-NEXT: ReadAccess := [Reduction Type: NONE] [Scalar: 1]
|
|
; NONAFFINE-NEXT: [octets] -> { Stmt_if_then84[] -> MemRef_indvars_iv[] };
|
|
; NONAFFINE-NEXT: MayWriteAccess := [Reduction Type: NONE] [Scalar: 0]
|
|
; NONAFFINE-NEXT: [octets] -> { Stmt_if_then84[] -> MemRef_input[o0] };
|
|
; NONAFFINE-NEXT: }
|