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
103 lines
4.1 KiB
LLVM
103 lines
4.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: opt -disable-output "-passes=print<scalar-evolution>" -scalar-evolution-classify-expressions=0 < %s 2>&1 | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define void @hoge1(i1 %arg) {
|
|
;
|
|
; CHECK-LABEL: 'hoge1'
|
|
; CHECK-NEXT: Determining loop execution counts for: @hoge1
|
|
; CHECK-NEXT: Loop %bb13: backedge-taken count is (-2 + (2 * undef) + %tmp7 + %tmp6)
|
|
; CHECK-NEXT: Loop %bb13: constant max backedge-taken count is i32 -1
|
|
; CHECK-NEXT: Loop %bb13: symbolic max backedge-taken count is (-2 + (2 * undef) + %tmp7 + %tmp6)
|
|
; CHECK-NEXT: Loop %bb13: Trip multiple is 1
|
|
; CHECK-NEXT: Loop %bb4: backedge-taken count is i64 20
|
|
; CHECK-NEXT: Loop %bb4: constant max backedge-taken count is i64 20
|
|
; CHECK-NEXT: Loop %bb4: symbolic max backedge-taken count is i64 20
|
|
; CHECK-NEXT: Loop %bb4: Trip multiple is 21
|
|
; CHECK-NEXT: Loop %bb2: Unpredictable backedge-taken count.
|
|
; CHECK-NEXT: Loop %bb2: Unpredictable constant max backedge-taken count.
|
|
; CHECK-NEXT: Loop %bb2: Unpredictable symbolic max backedge-taken count.
|
|
;
|
|
bb:
|
|
br i1 %arg, label %bb4, label %bb2
|
|
|
|
bb2: ; preds = %bb2, %bb
|
|
br i1 false, label %bb4, label %bb2
|
|
|
|
bb3: ; preds = %bb4
|
|
%tmp = add i32 %tmp10, -1
|
|
br label %bb13
|
|
|
|
bb4: ; preds = %bb4, %bb2, %bb
|
|
%tmp5 = phi i64 [ %tmp11, %bb4 ], [ 1, %bb2 ], [ 1, %bb ]
|
|
%tmp6 = phi i32 [ %tmp10, %bb4 ], [ 0, %bb2 ], [ 0, %bb ]
|
|
%tmp7 = load i32, ptr undef, align 4
|
|
%tmp8 = add i32 %tmp7, %tmp6
|
|
%tmp9 = add i32 undef, %tmp8
|
|
%tmp10 = add i32 undef, %tmp9
|
|
%tmp11 = add nsw i64 %tmp5, 3
|
|
%tmp12 = icmp eq i64 %tmp11, 64
|
|
br i1 %tmp12, label %bb3, label %bb4
|
|
|
|
|
|
bb13: ; preds = %bb13, %bb3
|
|
%tmp14 = phi i64 [ 0, %bb3 ], [ %tmp15, %bb13 ]
|
|
%tmp15 = add nuw nsw i64 %tmp14, 1
|
|
%tmp16 = trunc i64 %tmp15 to i32
|
|
%tmp17 = icmp eq i32 %tmp16, %tmp
|
|
br i1 %tmp17, label %bb18, label %bb13
|
|
|
|
bb18: ; preds = %bb13
|
|
ret void
|
|
}
|
|
|
|
define void @hoge2(i1 %arg) {
|
|
;
|
|
; CHECK-LABEL: 'hoge2'
|
|
; CHECK-NEXT: Determining loop execution counts for: @hoge2
|
|
; CHECK-NEXT: Loop %bb13: backedge-taken count is (-2 + (2 * undef) + %tmp7 + %tmp6)
|
|
; CHECK-NEXT: Loop %bb13: constant max backedge-taken count is i32 -1
|
|
; CHECK-NEXT: Loop %bb13: symbolic max backedge-taken count is (-2 + (2 * undef) + %tmp7 + %tmp6)
|
|
; CHECK-NEXT: Loop %bb13: Trip multiple is 1
|
|
; CHECK-NEXT: Loop %bb4: Unpredictable backedge-taken count.
|
|
; CHECK-NEXT: Loop %bb4: Unpredictable constant max backedge-taken count.
|
|
; CHECK-NEXT: Loop %bb4: Unpredictable symbolic max backedge-taken count.
|
|
; CHECK-NEXT: Loop %bb2: Unpredictable backedge-taken count.
|
|
; CHECK-NEXT: Loop %bb2: Unpredictable constant max backedge-taken count.
|
|
; CHECK-NEXT: Loop %bb2: Unpredictable symbolic max backedge-taken count.
|
|
;
|
|
bb:
|
|
br i1 %arg, label %bb4, label %bb2
|
|
|
|
bb2: ; preds = %bb2, %bb
|
|
br i1 false, label %bb4, label %bb2
|
|
|
|
bb3: ; preds = %bb4
|
|
%tmp = add i32 %tmp10, -1
|
|
br label %bb13
|
|
|
|
bb4: ; preds = %bb4, %bb2, %bb
|
|
%tmp5 = phi i64 [ %tmp11, %bb4 ], [ 1, %bb2 ], [ 3, %bb ]
|
|
%tmp6 = phi i32 [ %tmp10, %bb4 ], [ 0, %bb2 ], [ 0, %bb ]
|
|
%tmp7 = load i32, ptr undef, align 4
|
|
%tmp8 = add i32 %tmp7, %tmp6
|
|
%tmp9 = add i32 undef, %tmp8
|
|
%tmp10 = add i32 undef, %tmp9
|
|
%tmp11 = add nsw i64 %tmp5, 3
|
|
%tmp12 = icmp eq i64 %tmp11, 64
|
|
br i1 %tmp12, label %bb3, label %bb4
|
|
|
|
|
|
bb13: ; preds = %bb13, %bb3
|
|
%tmp14 = phi i64 [ 0, %bb3 ], [ %tmp15, %bb13 ]
|
|
%tmp15 = add nuw nsw i64 %tmp14, 1
|
|
%tmp16 = trunc i64 %tmp15 to i32
|
|
%tmp17 = icmp eq i32 %tmp16, %tmp
|
|
br i1 %tmp17, label %bb18, label %bb13
|
|
|
|
bb18: ; preds = %bb13
|
|
ret void
|
|
}
|