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
76 lines
2.4 KiB
LLVM
76 lines
2.4 KiB
LLVM
; RUN: opt -passes='early-cse<memssa>,loop-mssa(loop-rotate,licm,loop-rotate)' -earlycse-debug-hash -S %s -o - | FileCheck %s
|
|
; ModuleID = 'bugpoint-reduced-simplified.bc'
|
|
source_filename = "bugpoint-output-8903f29.bc"
|
|
target datalayout = "e-m:e-i64:64-n32:64"
|
|
target triple = "powerpc64le-unknown-linux-gnu"
|
|
|
|
define void @test(i64 %arg.ssa, i64 %arg.nb) local_unnamed_addr {
|
|
; Ensure that loop rotation doesn't duplicate the call to
|
|
; llvm.loop.decrement
|
|
; CHECK-LABEL: test
|
|
; CHECK: call i1 @llvm.loop.decrement
|
|
; CHECK-NOT: call i1 @llvm.loop.decrement
|
|
; CHECK: declare i1 @llvm.loop.decrement
|
|
entry:
|
|
switch i32 undef, label %BB_8 [
|
|
i32 -2, label %BB_9
|
|
i32 0, label %BB_9
|
|
]
|
|
|
|
BB_1: ; preds = %BB_12, %BB_4
|
|
%bcount.1.us = phi i64 [ %.810.us, %BB_4 ], [ 0, %BB_12 ]
|
|
%0 = add i64 %arg.ssa, %bcount.1.us
|
|
%.568.us = load i32, ptr undef, align 4
|
|
%.15.i.us = icmp slt i32 0, %.568.us
|
|
br i1 %.15.i.us, label %BB_3, label %BB_2
|
|
|
|
BB_2: ; preds = %BB_1
|
|
%.982.us = add nsw i64 %0, 1
|
|
unreachable
|
|
|
|
BB_3: ; preds = %BB_1
|
|
%1 = add i64 %arg.ssa, %bcount.1.us
|
|
%2 = add i64 %1, 1
|
|
%3 = call i1 @llvm.loop.decrement.i32(i32 1)
|
|
br i1 %3, label %BB_4, label %BB_7
|
|
|
|
BB_4: ; preds = %BB_3
|
|
%.810.us = add nuw nsw i64 %bcount.1.us, 1
|
|
br label %BB_1
|
|
|
|
BB_5: ; preds = %BB_7, %BB_5
|
|
%lsr.iv20.i116 = phi i64 [ %2, %BB_7 ], [ %lsr.iv.next21.i126, %BB_5 ]
|
|
%lsr.iv.next21.i126 = add i64 %lsr.iv20.i116, 1
|
|
br i1 undef, label %BB_5, label %BB_6
|
|
|
|
BB_6: ; preds = %BB_5
|
|
ret void
|
|
|
|
BB_7: ; preds = %BB_3
|
|
br label %BB_5
|
|
|
|
BB_8: ; preds = %entry
|
|
ret void
|
|
|
|
BB_9: ; preds = %entry, %entry
|
|
br label %BB_10
|
|
|
|
BB_10: ; preds = %BB_9
|
|
br label %BB_11
|
|
|
|
BB_11: ; preds = %BB_11, %BB_10
|
|
br i1 undef, label %BB_11, label %BB_12
|
|
|
|
BB_12: ; preds = %BB_11
|
|
call void @llvm.set.loop.iterations.i64(i64 %arg.nb)
|
|
br label %BB_1
|
|
}
|
|
|
|
; Function Attrs: nounwind
|
|
declare void @llvm.set.loop.iterations.i64(i64) #0
|
|
|
|
; Function Attrs: nounwind
|
|
declare i1 @llvm.loop.decrement.i32(i32) #0
|
|
|
|
attributes #0 = { nounwind }
|