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
51 lines
1.8 KiB
LLVM
51 lines
1.8 KiB
LLVM
; RUN: opt < %s -passes=indvars -disable-output
|
|
; PR4009
|
|
; PR4038
|
|
|
|
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
|
|
target triple = "i386-pc-linux-gnu"
|
|
|
|
define void @safe_bcopy(ptr %to) nounwind {
|
|
entry:
|
|
%cmp11 = icmp ult ptr %to, null ; <i1> [#uses=1]
|
|
br i1 %cmp11, label %loop, label %return
|
|
|
|
return: ; preds = %entry
|
|
ret void
|
|
|
|
loop: ; preds = %loop, %if.else
|
|
%pn = phi ptr [ %ge, %loop ], [ null, %entry ] ; <ptr> [#uses=1]
|
|
%cp = ptrtoint ptr %to to i32 ; <i32> [#uses=1]
|
|
%su = sub i32 0, %cp ; <i32> [#uses=1]
|
|
%ge = getelementptr i8, ptr %pn, i32 %su ; <ptr> [#uses=2]
|
|
tail call void @bcopy(ptr %ge) nounwind
|
|
br label %loop
|
|
}
|
|
|
|
define void @safe_bcopy_4038(ptr %from, ptr %to, i32 %size) nounwind {
|
|
entry:
|
|
br i1 false, label %if.else, label %if.then12
|
|
|
|
if.then12: ; preds = %entry
|
|
ret void
|
|
|
|
if.else: ; preds = %entry
|
|
%sub.ptr.rhs.cast40 = ptrtoint ptr %from to i32 ; <i32> [#uses=1]
|
|
br label %if.end54
|
|
|
|
if.end54: ; preds = %if.end54, %if.else
|
|
%sub.ptr4912.pn = phi ptr [ %sub.ptr4912, %if.end54 ], [ null, %if.else ] ; <ptr> [#uses=1]
|
|
%sub.ptr7 = phi ptr [ %sub.ptr, %if.end54 ], [ null, %if.else ] ; <ptr> [#uses=2]
|
|
%sub.ptr.rhs.cast46.pn = ptrtoint ptr %from to i32 ; <i32> [#uses=1]
|
|
%sub.ptr.lhs.cast45.pn = ptrtoint ptr %to to i32 ; <i32> [#uses=1]
|
|
%sub.ptr.sub47.pn = sub i32 %sub.ptr.rhs.cast46.pn, %sub.ptr.lhs.cast45.pn ; <i32> [#uses=1]
|
|
%sub.ptr4912 = getelementptr i8, ptr %sub.ptr4912.pn, i32 %sub.ptr.sub47.pn ; <ptr> [#uses=2]
|
|
tail call void @bcopy_4038(ptr %sub.ptr4912, ptr %sub.ptr7, i32 0) nounwind
|
|
%sub.ptr = getelementptr i8, ptr %sub.ptr7, i32 %sub.ptr.rhs.cast40 ; <ptr> [#uses=1]
|
|
br label %if.end54
|
|
}
|
|
|
|
declare void @bcopy(ptr nocapture) nounwind
|
|
|
|
declare void @bcopy_4038(ptr, ptr, i32) nounwind
|