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
45 lines
1.8 KiB
LLVM
45 lines
1.8 KiB
LLVM
; RUN: opt -S -passes=indvars < %s | FileCheck %s
|
|
|
|
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-apple-macosx10.11.0"
|
|
|
|
define i32 @somefunc(ptr %arr) {
|
|
; CHECK-LABEL: @somefunc(
|
|
entry:
|
|
br label %for.cond.1.preheader
|
|
|
|
for.cond.1.preheader: ; preds = %for.inc.9, %entry
|
|
%index3.013 = phi i32 [ 0, %entry ], [ %index3.1.lcssa, %for.inc.9 ]
|
|
%index.012 = phi i32 [ 0, %entry ], [ %inc10, %for.inc.9 ]
|
|
%cmp2.9 = icmp sgt i32 %index.012, 0
|
|
br i1 %cmp2.9, label %for.body.3.lr.ph, label %for.inc.9
|
|
|
|
for.body.3.lr.ph: ; preds = %for.cond.1.preheader
|
|
%idxprom5 = sext i32 %index.012 to i64
|
|
br label %for.body.3
|
|
|
|
for.body.3: ; preds = %for.body.3, %for.body.3.lr.ph
|
|
%index3.111 = phi i32 [ %index3.013, %for.body.3.lr.ph ], [ %inc, %for.body.3 ]
|
|
%index2.010 = phi i32 [ 0, %for.body.3.lr.ph ], [ %inc8, %for.body.3 ]
|
|
%inc = add nsw i32 %index3.111, 1
|
|
%idxprom = sext i32 %index3.111 to i64
|
|
%arrayidx = getelementptr inbounds double, ptr %arr, i64 %idxprom
|
|
%idxprom4 = sext i32 %index2.010 to i64
|
|
%inc8 = add nsw i32 %index2.010, 1
|
|
%cmp2 = icmp slt i32 %inc8, %index.012
|
|
br i1 %cmp2, label %for.body.3, label %for.inc.9.loopexit
|
|
|
|
for.inc.9.loopexit: ; preds = %for.body.3
|
|
%inc.lcssa = phi i32 [ %inc, %for.body.3 ]
|
|
br label %for.inc.9
|
|
|
|
for.inc.9: ; preds = %for.inc.9.loopexit, %for.cond.1.preheader
|
|
%index3.1.lcssa = phi i32 [ %index3.013, %for.cond.1.preheader ], [ %inc.lcssa, %for.inc.9.loopexit ]
|
|
%inc10 = add nsw i32 %index.012, 1
|
|
%cmp = icmp slt i32 %inc10, 10
|
|
br i1 %cmp, label %for.cond.1.preheader, label %for.end.11
|
|
|
|
for.end.11: ; preds = %for.inc.9
|
|
ret i32 1
|
|
}
|