Files
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

46 lines
2.1 KiB
LLVM

; REQUIRES: asserts
; RUN: opt -passes=loop-fusion -loop-fusion-peel-max-count=2 -disable-output -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
; STAT: 1 loop-fusion - Loops fused
; Test reduced from the file diags_on_lat_aux_grid.F90 present in pop2,
; a program from spec 2017.
; Loop fusion should not crash when flushing the DomTreeUpdater due to
; missed edge removals when deleting basic blocks.
define void @diags_on_lat_aux_grid(i1 %cond, i1 %cond1, i1 %0, ptr noalias %b1, ptr noalias %b2) {
.critedge:
br i1 %cond, label %common.ret, label %thread-pre-split
common.ret: ; preds = %.loopexit, %.critedge
ret void
thread-pre-split: ; preds = %.critedge
br i1 %cond1, label %2, label %.loopexit
2: ; preds = %thread-pre-split
br i1 %0, label %.lr.ph1333, label %._crit_edge1334
.lr.ph1333: ; preds = %.lr.ph1333, %2
%indvars.iv1386 = phi i64 [ %indvars.iv.next1387, %.lr.ph1333 ], [ 0, %2 ]
%3 = getelementptr [8 x i8], ptr %b1, i64 %indvars.iv1386
store double 0.000000e+00, ptr %3, align 8
%indvars.iv.next1387 = add i64 %indvars.iv1386, 1
%exitcond1389.not = icmp eq i64 %indvars.iv1386, 100
br i1 %exitcond1389.not, label %._crit_edge1334, label %.lr.ph1333
._crit_edge1334: ; preds = %.lr.ph1333, %2
br i1 %0, label %.lr.ph1336, label %.loopexit
.lr.ph1336: ; preds = %.lr.ph1336, %._crit_edge1334
%indvars.iv1390 = phi i64 [ %indvars.iv.next1391, %.lr.ph1336 ], [ 0, %._crit_edge1334 ]
%5 = getelementptr [8 x i8], ptr %b2, i64 %indvars.iv1390
store double 0.000000e+00, ptr %5, align 8
%indvars.iv.next1391 = add i64 %indvars.iv1390, 1
%exitcond1393.not = icmp eq i64 %indvars.iv.next1391, 99
br i1 %exitcond1393.not, label %.loopexit, label %.lr.ph1336
.loopexit: ; preds = %.lr.ph1336, %._crit_edge1334, %thread-pre-split
store volatile i32 0, ptr %b1, align 4
br label %common.ret
}