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
1.5 KiB
LLVM
48 lines
1.5 KiB
LLVM
; RUN: opt -disable-output "-passes=print<scalar-evolution>" < %s 2>&1 | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1"
|
|
|
|
; Check that we don't have unreasonably huge SCEVs and in particular only a
|
|
; reasonable amount of AddRecs in the notation of %tmp19. If we "simplify" SCEVs
|
|
; too aggressively, we may end up with huge nested expressions.
|
|
define void @test(i32 %x, i64 %y, i1 %cond) {
|
|
|
|
; CHECK: %tmp19 = mul i32 %tmp17, %tmp18
|
|
; CHECK: ((((((
|
|
; CHECK-NOT: (((((
|
|
; CHECK: %tmp20 = add i32 %tmp19, %x
|
|
|
|
bb:
|
|
br label %bb1
|
|
|
|
bb1: ; preds = %bb3, %bb
|
|
%tmp = phi i64 [ %y, %bb ], [ %tmp22, %bb3 ]
|
|
%tmp2 = phi i32 [ %x, %bb ], [ %tmp4, %bb3 ]
|
|
br label %bb5
|
|
|
|
bb3: ; preds = %bb5
|
|
%tmp4 = add i32 %tmp2, %x
|
|
br label %bb1
|
|
|
|
bb5: ; preds = %bb5, %bb1
|
|
%tmp6 = phi i32 [ %tmp23, %bb5 ], [ %tmp2, %bb1 ]
|
|
%tmp7 = sub i32 -119, %tmp6
|
|
%tmp8 = mul i32 %tmp7, %x
|
|
%tmp9 = sub i32 -120, %tmp6
|
|
%tmp10 = mul i32 %tmp8, %tmp9
|
|
%tmp11 = mul i32 %x, %tmp10
|
|
%tmp12 = sub i32 -121, %tmp6
|
|
%tmp13 = mul i32 %tmp10, %tmp12
|
|
%tmp14 = mul i32 %tmp11, %tmp13
|
|
%tmp15 = sub i32 -122, %tmp6
|
|
%tmp16 = mul i32 %tmp13, %tmp15
|
|
%tmp17 = mul i32 %tmp14, %tmp16
|
|
%tmp18 = mul i32 %tmp16, %x
|
|
%tmp19 = mul i32 %tmp17, %tmp18
|
|
%tmp20 = add i32 %tmp19, %x
|
|
%tmp21 = sext i32 %tmp20 to i64
|
|
%tmp22 = add i64 %y, %tmp21
|
|
%tmp23 = add i32 %tmp6, 7
|
|
br i1 %cond, label %bb5, label %bb3
|
|
}
|