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
61 lines
2.3 KiB
LLVM
61 lines
2.3 KiB
LLVM
; RUN: opt %loadNPMPolly -polly-stmt-granularity=bb '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
; Verify that we can look through a bitcast when delinearizing multi-dimensional
|
|
; arrays.
|
|
|
|
; CHECK: Stmt_bb7[i0, i1] -> MemRef_B[i0, i1]
|
|
; CHECK: Stmt_bb7[i0, i1] -> MemRef_B[i0, i1]
|
|
; CHECK: Stmt_bb17[i0] -> MemRef_B[i0, 100]
|
|
|
|
define void @kernel(ptr %A, ptr %B, ptr %C, ptr %D) {
|
|
bb:
|
|
br label %bb4
|
|
|
|
bb4: ; preds = %bb21, %bb
|
|
%indvars.iv1 = phi i64 [ %indvars.iv.next2, %bb21 ], [ 0, %bb ]
|
|
%exitcond3 = icmp eq i64 %indvars.iv1, 100
|
|
br i1 %exitcond3, label %bb22, label %bb5
|
|
|
|
bb5: ; preds = %bb4
|
|
br label %bb6
|
|
|
|
bb6: ; preds = %bb16, %bb5
|
|
%indvars.iv = phi i64 [ %indvars.iv.next, %bb16 ], [ 0, %bb5 ]
|
|
%exitcond = icmp eq i64 %indvars.iv, 100
|
|
br i1 %exitcond, label %bb17, label %bb7
|
|
|
|
bb7: ; preds = %bb6
|
|
%tmp = getelementptr inbounds float, ptr %D, i64 %indvars.iv
|
|
%tmp8 = load float, ptr %tmp, align 4
|
|
%tmp9 = getelementptr inbounds [101 x float], ptr %B, i64 %indvars.iv1, i64 %indvars.iv
|
|
%tmp10 = load float, ptr %tmp9, align 4
|
|
%tmp11 = fmul float %tmp8, %tmp10
|
|
%tmp12 = getelementptr inbounds [101 x float], ptr %C, i64 %indvars.iv1, i64 %indvars.iv
|
|
store float %tmp11, ptr %tmp12, align 4
|
|
%tmp13 = getelementptr inbounds float, ptr %A, i64 %indvars.iv
|
|
%tmp141 = load i32, ptr %tmp13, align 4
|
|
%tmp15 = getelementptr inbounds [101 x float], ptr %B, i64 %indvars.iv1, i64 %indvars.iv
|
|
store i32 %tmp141, ptr %tmp15, align 4
|
|
br label %bb16
|
|
|
|
bb16: ; preds = %bb7
|
|
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
|
|
br label %bb6
|
|
|
|
bb17: ; preds = %bb6
|
|
%tmp18 = trunc i64 %indvars.iv1 to i32
|
|
%tmp19 = sitofp i32 %tmp18 to float
|
|
%tmp20 = getelementptr inbounds [101 x float], ptr %B, i64 %indvars.iv1, i64 100
|
|
store float %tmp19, ptr %tmp20, align 4
|
|
br label %bb21
|
|
|
|
bb21: ; preds = %bb17
|
|
%indvars.iv.next2 = add nuw nsw i64 %indvars.iv1, 1
|
|
br label %bb4
|
|
|
|
bb22: ; preds = %bb4
|
|
ret void
|
|
}
|