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
48 lines
2.4 KiB
LLVM
48 lines
2.4 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: opt -S -passes=loop-fusion < %s 2>&1 | FileCheck %s
|
|
|
|
; When the two loops are legal to get fused, and when there are phi nodes in the second loop preheader
|
|
; that will be sunk to the exit block, replace the phi uses with the corresponding incoming value.
|
|
; This fixes llvm issue 165087.
|
|
|
|
define i8 @_Z3fn1ssb() {
|
|
; CHECK-LABEL: define i8 @_Z3fn1ssb() {
|
|
; CHECK-NEXT: [[ENTRY:.*]]:
|
|
; CHECK-NEXT: br label %[[FOR_BODY11_1:.*]]
|
|
; CHECK: [[FOR_BODY11_1]]:
|
|
; CHECK-NEXT: [[INDVARS_IV_1:%.*]] = phi i64 [ [[INDVARS_IV_NEXT_1:%.*]], %[[FOR_BODY11_1]] ], [ 2, %[[ENTRY]] ]
|
|
; CHECK-NEXT: [[INDVARS_IV_2:%.*]] = phi i64 [ [[INDVARS_IV_NEXT_2:%.*]], %[[FOR_BODY11_1]] ], [ 2, %[[ENTRY]] ]
|
|
; CHECK-NEXT: [[INDVARS_IV_NEXT_1]] = add i64 [[INDVARS_IV_1]], 1
|
|
; CHECK-NEXT: [[EXITCOND_1_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_1]], 0
|
|
; CHECK-NEXT: [[INDVARS_IV_NEXT_2]] = add i64 [[INDVARS_IV_2]], 1
|
|
; CHECK-NEXT: [[EXITCOND_2_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_2]], 0
|
|
; CHECK-NEXT: br i1 [[EXITCOND_2_NOT]], label %[[FOR_COND_CLEANUP6_2_LOOPEXIT:.*]], label %[[FOR_BODY11_1]]
|
|
; CHECK: [[FOR_COND_CLEANUP6_2_LOOPEXIT]]:
|
|
; CHECK-NEXT: [[DOTSROA_SPECULATED_2_LCSSA:%.*]] = phi i8 [ 0, %[[FOR_BODY11_1]] ]
|
|
; CHECK-NEXT: ret i8 [[DOTSROA_SPECULATED_2_LCSSA]]
|
|
;
|
|
entry:
|
|
br label %for.body11.1
|
|
|
|
for.body11.1: ; preds = %for.body11.1, %entry
|
|
%indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %for.body11.1 ], [ 2, %entry ]
|
|
%indvars.iv.next.1 = add i64 %indvars.iv.1, 1
|
|
%exitcond.1.not = icmp eq i64 %indvars.iv.next.1, 0
|
|
br i1 %exitcond.1.not, label %for.body11.2.preheader, label %for.body11.1
|
|
|
|
for.body11.2.preheader: ; preds = %for.body11.1
|
|
%.sroa.speculated.1.lcssa = phi i8 [ 0, %for.body11.1 ]
|
|
br label %for.body11.2
|
|
|
|
for.body11.2: ; preds = %for.body11.2, %for.body11.2.preheader
|
|
%indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %for.body11.2 ], [ 2, %for.body11.2.preheader ]
|
|
%indvars.iv.next.2 = add i64 %indvars.iv.2, 1
|
|
%exitcond.2.not = icmp eq i64 %indvars.iv.next.2, 0
|
|
br i1 %exitcond.2.not, label %for.cond.cleanup6.2.loopexit, label %for.body11.2
|
|
|
|
for.cond.cleanup6.2.loopexit: ; preds = %for.body11.2
|
|
%.sroa.speculated.2.lcssa = phi i8 [ %.sroa.speculated.1.lcssa, %for.body11.2 ]
|
|
ret i8 %.sroa.speculated.2.lcssa
|
|
}
|
|
|