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
100 lines
4.4 KiB
LLVM
100 lines
4.4 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
|
|
; RUN: opt -disable-output "-passes=print<scalar-evolution>" < %s 2>&1 | FileCheck %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define void @f0() {
|
|
; CHECK-LABEL: 'f0'
|
|
; CHECK-NEXT: Classifying expressions for: @f0
|
|
; CHECK-NEXT: %v0 = phi i16 [ 2, %b0 ], [ %v2, %b1 ]
|
|
; CHECK-NEXT: --> {2,+,1}<nuw><nsw><%b1> U: [2,4) S: [2,4) Exits: 3 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v1 = phi i16 [ 1, %b0 ], [ %v3, %b1 ]
|
|
; CHECK-NEXT: --> {1,+,2,+,1}<%b1> U: full-set S: full-set Exits: 3 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v2 = add nsw i16 %v0, 1
|
|
; CHECK-NEXT: --> {3,+,1}<nuw><nsw><%b1> U: [3,5) S: [3,5) Exits: 4 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v3 = add nsw i16 %v1, %v0
|
|
; CHECK-NEXT: --> {3,+,3,+,1}<%b1> U: full-set S: full-set Exits: 6 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v4 = and i16 %v3, 1
|
|
; CHECK-NEXT: --> (zext i1 {true,+,true,+,true}<%b1> to i16) U: [0,2) S: [0,2) Exits: 0 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: Determining loop execution counts for: @f0
|
|
; CHECK-NEXT: Loop %b1: backedge-taken count is i6 1
|
|
; CHECK-NEXT: Loop %b1: constant max backedge-taken count is i6 1
|
|
; CHECK-NEXT: Loop %b1: symbolic max backedge-taken count is i6 1
|
|
; CHECK-NEXT: Loop %b1: Trip multiple is 2
|
|
;
|
|
b0:
|
|
br label %b1
|
|
|
|
b1: ; preds = %b1, %b0
|
|
%v0 = phi i16 [ 2, %b0 ], [ %v2, %b1 ]
|
|
%v1 = phi i16 [ 1, %b0 ], [ %v3, %b1 ]
|
|
%v2 = add nsw i16 %v0, 1
|
|
%v3 = add nsw i16 %v1, %v0
|
|
%v4 = and i16 %v3, 1
|
|
%v5 = icmp ne i16 %v4, 0
|
|
br i1 %v5, label %b1, label %b2
|
|
|
|
b2: ; preds = %b1
|
|
ret void
|
|
}
|
|
|
|
@g0 = common dso_local global i16 0, align 2
|
|
@g1 = common dso_local global i32 0, align 4
|
|
@g2 = common dso_local global ptr null, align 8
|
|
|
|
define void @f1() #0 {
|
|
; CHECK-LABEL: 'f1'
|
|
; CHECK-NEXT: Classifying expressions for: @f1
|
|
; CHECK-NEXT: %v0 = phi i16 [ 0, %b0 ], [ %v3, %b1 ]
|
|
; CHECK-NEXT: --> {0,+,3,+,1}<%b1> U: full-set S: full-set Exits: 7 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v1 = phi i32 [ 3, %b0 ], [ %v6, %b1 ]
|
|
; CHECK-NEXT: --> {3,+,1}<nuw><nsw><%b1> U: [3,6) S: [3,6) Exits: 5 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v2 = trunc i32 %v1 to i16
|
|
; CHECK-NEXT: --> {3,+,1}<%b1> U: [3,6) S: [3,6) Exits: 5 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v3 = add i16 %v0, %v2
|
|
; CHECK-NEXT: --> {3,+,4,+,1}<%b1> U: full-set S: full-set Exits: 12 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v4 = and i16 %v3, 1
|
|
; CHECK-NEXT: --> (zext i1 {true,+,false,+,true}<%b1> to i16) U: [0,2) S: [0,2) Exits: 0 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v6 = add nuw nsw i32 %v1, 1
|
|
; CHECK-NEXT: --> {4,+,1}<nuw><nsw><%b1> U: [4,7) S: [4,7) Exits: 6 LoopDispositions: { %b1: Computable }
|
|
; CHECK-NEXT: %v7 = phi i32 [ %v1, %b1 ]
|
|
; CHECK-NEXT: --> {3,+,1}<nuw><nsw><%b1> U: [3,6) S: [3,6) --> 5 U: [5,6) S: [5,6)
|
|
; CHECK-NEXT: %v8 = phi i16 [ %v3, %b1 ]
|
|
; CHECK-NEXT: --> {3,+,4,+,1}<%b1> U: full-set S: full-set --> 12 U: [12,13) S: [12,13)
|
|
; CHECK-NEXT: Determining loop execution counts for: @f1
|
|
; CHECK-NEXT: Loop %b3: <multiple exits> Unpredictable backedge-taken count.
|
|
; CHECK-NEXT: Loop %b3: Unpredictable constant max backedge-taken count.
|
|
; CHECK-NEXT: Loop %b3: Unpredictable symbolic max backedge-taken count.
|
|
; CHECK-NEXT: Loop %b1: backedge-taken count is i6 2
|
|
; CHECK-NEXT: Loop %b1: constant max backedge-taken count is i6 2
|
|
; CHECK-NEXT: Loop %b1: symbolic max backedge-taken count is i6 2
|
|
; CHECK-NEXT: Loop %b1: Trip multiple is 3
|
|
;
|
|
b0:
|
|
store i16 0, ptr @g0, align 2
|
|
store ptr @g1, ptr @g2, align 8
|
|
br label %b1
|
|
|
|
b1: ; preds = %b1, %b0
|
|
%v0 = phi i16 [ 0, %b0 ], [ %v3, %b1 ]
|
|
%v1 = phi i32 [ 3, %b0 ], [ %v6, %b1 ]
|
|
%v2 = trunc i32 %v1 to i16
|
|
%v3 = add i16 %v0, %v2
|
|
%v4 = and i16 %v3, 1
|
|
%v5 = icmp eq i16 %v4, 0
|
|
%v6 = add nuw nsw i32 %v1, 1
|
|
br i1 %v5, label %b2, label %b1
|
|
|
|
b2: ; preds = %b1
|
|
%v7 = phi i32 [ %v1, %b1 ]
|
|
%v8 = phi i16 [ %v3, %b1 ]
|
|
store i32 %v7, ptr @g1, align 4
|
|
store i16 %v8, ptr @g0, align 2
|
|
br label %b3
|
|
|
|
b3: ; preds = %b3, %b2
|
|
br label %b3
|
|
}
|
|
|
|
attributes #0 = { nounwind uwtable "target-cpu"="x86-64" }
|