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
37 lines
950 B
LLVM
37 lines
950 B
LLVM
; RUN: opt < %s -passes=indvars -S | FileCheck %s
|
|
|
|
; Provide legal integer types.
|
|
target datalayout = "e-p:32:32:32-n8:16:32:64"
|
|
|
|
|
|
define void @foo(ptr nocapture %x, i32 %n) nounwind {
|
|
; CHECK-LABEL: @foo(
|
|
; CHECK-NOT: sext
|
|
; CHECK: phi
|
|
; CHECK-NOT: phi
|
|
entry:
|
|
%tmp102 = icmp sgt i32 %n, 0 ; <i1> [#uses=1]
|
|
br i1 %tmp102, label %bb.nph, label %return
|
|
|
|
bb.nph: ; preds = %entry
|
|
br label %bb
|
|
|
|
bb: ; preds = %bb7, %bb.nph
|
|
%i.01 = phi i32 [ %tmp6, %bb7 ], [ 0, %bb.nph ] ; <i32> [#uses=3]
|
|
%tmp1 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
|
|
%tmp4 = getelementptr i64, ptr %x, i32 %i.01 ; <ptr> [#uses=1]
|
|
store i64 %tmp1, ptr %tmp4, align 8
|
|
%tmp6 = add i32 %i.01, 1 ; <i32> [#uses=2]
|
|
br label %bb7
|
|
|
|
bb7: ; preds = %bb
|
|
%tmp10 = icmp slt i32 %tmp6, %n ; <i1> [#uses=1]
|
|
br i1 %tmp10, label %bb, label %bb7.return_crit_edge
|
|
|
|
bb7.return_crit_edge: ; preds = %bb7
|
|
br label %return
|
|
|
|
return: ; preds = %bb7.return_crit_edge, %entry
|
|
ret void
|
|
}
|