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
74 lines
2.3 KiB
LLVM
74 lines
2.3 KiB
LLVM
; RUN: opt %loadNPMPolly -polly-process-unprofitable=false '-passes=polly-custom<detect>' -polly-print-detect -disable-output < %s 2>&1 | FileCheck %s
|
|
; RUN: opt %loadNPMPolly -polly-process-unprofitable=true '-passes=polly-custom<detect>' -polly-print-detect -disable-output < %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: Valid Region for Scop:
|
|
|
|
; void foo(float *A, float *B, long N) {
|
|
; if (N > 100)
|
|
; for (long i = 0; i < 100; i++)
|
|
; A[i] += i;
|
|
; else
|
|
; for (long i = 0; i < 100; i++)
|
|
; B[i] += i;
|
|
; }
|
|
;
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
define void @foo(ptr %A, ptr %B, i64 %N) {
|
|
entry:
|
|
br label %bb
|
|
|
|
bb:
|
|
%tmp = icmp sgt i64 %N, 100
|
|
br i1 %tmp, label %bb2, label %bb12
|
|
|
|
bb2: ; preds = %bb
|
|
br label %bb3
|
|
|
|
bb3: ; preds = %bb9, %bb2
|
|
%i.0 = phi i64 [ 0, %bb2 ], [ %tmp10, %bb9 ]
|
|
%exitcond = icmp ne i64 %i.0, 100
|
|
br i1 %exitcond, label %bb4, label %bb11
|
|
|
|
bb4: ; preds = %bb3
|
|
%tmp5 = sitofp i64 %i.0 to float
|
|
%tmp6 = getelementptr inbounds float, ptr %A, i64 %i.0
|
|
%tmp7 = load float, ptr %tmp6, align 4
|
|
%tmp8 = fadd float %tmp7, %tmp5
|
|
store float %tmp8, ptr %tmp6, align 4
|
|
br label %bb9
|
|
|
|
bb9: ; preds = %bb4
|
|
%tmp10 = add nsw i64 %i.0, 1
|
|
br label %bb3
|
|
|
|
bb11: ; preds = %bb3
|
|
br label %bb22
|
|
|
|
bb12: ; preds = %bb
|
|
br label %bb13
|
|
|
|
bb13: ; preds = %bb19, %bb12
|
|
%i1.0 = phi i64 [ 0, %bb12 ], [ %tmp20, %bb19 ]
|
|
%exitcond1 = icmp ne i64 %i1.0, 100
|
|
br i1 %exitcond1, label %bb14, label %bb21
|
|
|
|
bb14: ; preds = %bb13
|
|
%tmp15 = sitofp i64 %i1.0 to float
|
|
%tmp16 = getelementptr inbounds float, ptr %B, i64 %i1.0
|
|
%tmp17 = load float, ptr %tmp16, align 4
|
|
%tmp18 = fadd float %tmp17, %tmp15
|
|
store float %tmp18, ptr %tmp16, align 4
|
|
br label %bb19
|
|
|
|
bb19: ; preds = %bb14
|
|
%tmp20 = add nsw i64 %i1.0, 1
|
|
br label %bb13
|
|
|
|
bb21: ; preds = %bb13
|
|
br label %bb22
|
|
|
|
bb22: ; preds = %bb21, %bb11
|
|
ret void
|
|
}
|