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
44 lines
1.4 KiB
LLVM
44 lines
1.4 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -S -passes=indvars < %s | FileCheck %s
|
|
|
|
; This test used to assert when expanding an addrec into a loop without
|
|
; preheader.
|
|
|
|
define void @test(ptr %tgt) {
|
|
; CHECK-LABEL: @test(
|
|
; CHECK-NEXT: bb31:
|
|
; CHECK-NEXT: indirectbr ptr [[TGT:%.*]], [label [[EXIT:%.*]], label %bb33]
|
|
; CHECK: exit:
|
|
; CHECK-NEXT: ret void
|
|
; CHECK: bb33:
|
|
; CHECK-NEXT: [[TMP34:%.*]] = phi i32 [ [[TMP50:%.*]], [[BB49:%.*]] ], [ 0, [[BB31:%.*]] ]
|
|
; CHECK-NEXT: br i1 false, label [[BB40_PREHEADER:%.*]], label [[BB49]]
|
|
; CHECK: bb40.preheader:
|
|
; CHECK-NEXT: br label [[BB40:%.*]]
|
|
; CHECK: bb40:
|
|
; CHECK-NEXT: br label [[BB40]]
|
|
; CHECK: bb49:
|
|
; CHECK-NEXT: [[TMP50]] = add i32 [[TMP34]], 1
|
|
; CHECK-NEXT: br label [[BB33:%.*]]
|
|
;
|
|
bb31:
|
|
indirectbr ptr %tgt, [label %exit, label %bb33]
|
|
|
|
exit:
|
|
ret void
|
|
|
|
bb33: ; preds = %bb49, %bb31
|
|
%tmp34 = phi i32 [ %tmp50, %bb49 ], [ 0, %bb31 ]
|
|
%tmp36 = add i32 %tmp34, 1
|
|
br i1 false, label %bb40, label %bb49
|
|
|
|
bb40: ; preds = %bb38, %bb37
|
|
%tmp41 = phi i32 [ %tmp36, %bb33 ], [ %tmp39, %bb40 ]
|
|
%tmp39 = add i32 %tmp41, 0
|
|
br label %bb40
|
|
|
|
bb49: ; preds = %bb35
|
|
%tmp50 = add i32 %tmp34, 1
|
|
br label %bb33
|
|
}
|