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
58 lines
2.2 KiB
LLVM
58 lines
2.2 KiB
LLVM
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),instcombine,indvars' -S %s | FileCheck %s
|
|
|
|
; This used to crash in SCEVExpander when there were congruent phis with and
|
|
; undef incoming value from the loop header. The -loop-unswitch -passes=instcombine is
|
|
; necessary to create just this pattern, which is essentially a nop and gets
|
|
; folded away aggressively if spelled out in IR directly.
|
|
; PR 20093
|
|
|
|
@c = external global ptr, align 8
|
|
|
|
define void @test1(i1 %arg) {
|
|
entry:
|
|
br i1 %arg, label %for.end12, label %for.cond.preheader
|
|
|
|
for.cond.preheader: ; preds = %entry
|
|
%0 = load ptr, ptr @c, align 8
|
|
%1 = load ptr, ptr %0, align 8
|
|
%2 = load i32, ptr %1, align 4
|
|
br label %for.body
|
|
|
|
for.body: ; preds = %for.cond.backedge, %for.body9.us, %for.cond.preheader
|
|
%3 = phi ptr [ %1, %for.cond.preheader ], [ %3, %for.cond.backedge ], [ %6, %for.body9.us ]
|
|
%4 = phi i32 [ %2, %for.cond.preheader ], [ undef, %for.cond.backedge ], [ %7, %for.body9.us ]
|
|
%i.024 = phi i32 [ 0, %for.cond.preheader ], [ %inc, %for.cond.backedge ], [ 0, %for.body9.us ]
|
|
%tobool1 = icmp eq i32 %4, 0
|
|
br i1 %tobool1, label %if.end, label %for.cond.backedge
|
|
|
|
if.end: ; preds = %for.body
|
|
%5 = load i32, ptr %3, align 4
|
|
%tobool4 = icmp eq i32 %5, 0
|
|
br i1 %tobool4, label %for.cond3, label %for.body9.preheader
|
|
|
|
for.body9.preheader: ; preds = %if.end
|
|
%tobool8 = icmp eq i32 %i.024, 1
|
|
br i1 %tobool8, label %for.body9.us, label %for.body9
|
|
|
|
for.body9.us: ; preds = %for.body9.preheader
|
|
%6 = load ptr, ptr undef, align 8
|
|
%7 = load i32, ptr %6, align 4
|
|
br label %for.body
|
|
|
|
for.cond3: ; preds = %for.cond3, %if.end
|
|
br label %for.cond3
|
|
|
|
for.body9: ; preds = %for.body9, %for.body9.preheader
|
|
br label %for.body9
|
|
|
|
for.cond.backedge: ; preds = %for.body
|
|
%inc = add nsw i32 %i.024, 1
|
|
br i1 false, label %for.body, label %for.end12
|
|
|
|
for.end12: ; preds = %for.cond.backedge, %entry
|
|
ret void
|
|
|
|
; CHECK-LABEL: @test1
|
|
; CHECK-NOT: phi
|
|
}
|