Files
TheRock/compiler/amd-llvm/polly/test/ScopInfo/schedule-incorrectly-contructed-in-case-of-infinite-loop.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

92 lines
2.9 KiB
LLVM

; RUN: opt %loadNPMPolly -polly-process-unprofitable '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s
;
; This test contains a infinite loop (bb13) and crashed the domain generation
; at some point. Just verify it does not anymore.
;
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
define void @hoge() #0 {
bb:
%tmp5 = alloca [11 x [101 x i32]], align 16
br i1 false, label %bb24, label %bb6
bb6: ; preds = %bb
br label %bb8
bb7: ; preds = %bb23
unreachable
bb8: ; preds = %bb23, %bb6
br label %bb10
bb10: ; preds = %bb8
%tmp = load i32, ptr %tmp5, align 4
br i1 false, label %bb23, label %bb11
bb11: ; preds = %bb10
%tmp12 = load i32, ptr %tmp5, align 4
br label %bb13
bb13: ; preds = %bb13, %bb11
%tmp14 = phi i32 [ %tmp12, %bb11 ], [ %tmp19, %bb13 ]
%tmp15 = add nsw i32 %tmp14, 1
%tmp16 = sext i32 %tmp15 to i64
%tmp17 = getelementptr inbounds [11 x [101 x i32]], ptr %tmp5, i64 0, i64 0, i64 %tmp16
%tmp18 = load i32, ptr %tmp17, align 4
%tmp19 = add nsw i32 %tmp14, -1
%tmp20 = load i32, ptr %tmp5, align 4
%tmp21 = sext i32 %tmp20 to i64
%tmp22 = icmp slt i64 0, %tmp21
br label %bb13
bb23: ; preds = %bb10
br i1 undef, label %bb8, label %bb7
bb24: ; preds = %bb
ret void
}
define void @hoge2() #0 {
bb:
%tmp5 = alloca [11 x [101 x i32]], align 16
br i1 false, label %bb24, label %bb6
bb6: ; preds = %bb
br label %bb8
bb7: ; preds = %bb23
unreachable
bb8: ; preds = %bb23, %bb6
br label %bb10
bb10: ; preds = %bb8
%tmp = load i32, ptr %tmp5, align 4
br i1 false, label %bb23, label %bb11
bb11: ; preds = %bb10
%tmp12 = load i32, ptr %tmp5, align 4
br label %bb13
bb13: ; preds = %bb13, %bb11
%tmp14 = phi i32 [ %tmp12, %bb11 ], [ %tmp19, %bb13.split ]
%tmp15 = add nsw i32 %tmp14, 1
%tmp16 = sext i32 %tmp15 to i64
%tmp17 = getelementptr inbounds [11 x [101 x i32]], ptr %tmp5, i64 0, i64 0, i64 %tmp16
%tmp18 = load i32, ptr %tmp17, align 4
br label %bb13.split
bb13.split:
%tmp19 = add nsw i32 %tmp14, -1
%tmp20 = load i32, ptr %tmp5, align 4
%tmp21 = sext i32 %tmp20 to i64
%tmp22 = icmp slt i64 0, %tmp21
br label %bb13
bb23: ; preds = %bb10
br i1 undef, label %bb8, label %bb7
bb24: ; preds = %bb
ret void
}