Files
TheRock/compiler/amd-llvm/polly/test/CodeGen/invariant-load-preload-base-pointer-origin-first.ll
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

92 lines
3.7 KiB
LLVM

; RUN: opt %loadNPMPolly -S '-passes=polly<no-default-opts>' -polly-invariant-load-hoisting=true < %s
;
; Check that we generate valid code as we did non preload the base pointer
; origin of %tmp4 at some point.
;
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
@TOP = external global ptr, align 8
@BOT = external global ptr, align 8
define void @RemoveConstraintVCG() {
entry:
br i1 undef, label %for.end.161, label %for.cond.2.preheader
for.cond.2.preheader: ; preds = %entry
br i1 undef, label %for.end.128, label %for.body.4
for.body.4: ; preds = %for.inc.126, %for.cond.2.preheader
br i1 undef, label %for.cond.8.preheader, label %for.inc.126
for.cond.8.preheader: ; preds = %for.body.4
br i1 undef, label %for.inc.126, label %for.body.11
for.body.11: ; preds = %for.inc, %for.cond.8.preheader
br i1 undef, label %land.lhs.true, label %for.inc
land.lhs.true: ; preds = %for.body.11
br i1 undef, label %if.then.20, label %for.inc
if.then.20: ; preds = %land.lhs.true
%tmp = load ptr, ptr @TOP, align 8
%tmp1 = load i64, ptr %tmp, align 8
%cmp25 = icmp eq i64 %tmp1, 1
%cmp47 = icmp eq i64 %tmp1, 0
br i1 false, label %if.end.117, label %lor.lhs.false.85
lor.lhs.false.85: ; preds = %if.then.20
%add94 = add i64 %tmp1, 1
%tmp2 = load ptr, ptr @TOP, align 8
%arrayidx95 = getelementptr inbounds i64, ptr %tmp2, i64 %add94
%tmp3 = load i64, ptr %arrayidx95, align 8
br i1 false, label %if.else.103, label %land.lhs.true.97
land.lhs.true.97: ; preds = %lor.lhs.false.85
%tmp4 = load ptr, ptr @BOT, align 8
%arrayidx99 = getelementptr inbounds i64, ptr %tmp4, i64 %add94
%tmp5 = load i64, ptr %arrayidx99, align 8
%tobool100 = icmp eq i64 %tmp5, 0
br i1 %tobool100, label %if.else.103, label %if.then.101
if.then.101: ; preds = %land.lhs.true.97
br label %if.end.117
if.else.103: ; preds = %land.lhs.true.97, %lor.lhs.false.85
%tmp6 = load ptr, ptr @TOP, align 8
%arrayidx105 = getelementptr inbounds i64, ptr %tmp6, i64 %add94
%tmp7 = load i64, ptr %arrayidx105, align 8
br i1 false, label %lor.lhs.false.107, label %if.else.112
lor.lhs.false.107: ; preds = %if.else.103
%tmp8 = load ptr, ptr @BOT, align 8
%arrayidx109 = getelementptr inbounds i64, ptr %tmp8, i64 %add94
br i1 false, label %if.end.117, label %if.else.112
if.else.112: ; preds = %lor.lhs.false.107, %if.else.103
br label %if.end.117
if.end.117: ; preds = %if.else.112, %lor.lhs.false.107, %if.then.101, %if.then.20
br i1 undef, label %if.then.119, label %for.inc
if.then.119: ; preds = %if.end.117
br label %for.inc
for.inc: ; preds = %if.then.119, %if.end.117, %land.lhs.true, %for.body.11
br i1 false, label %for.body.11, label %for.inc.126
for.inc.126: ; preds = %for.inc, %for.cond.8.preheader, %for.body.4
br i1 undef, label %for.end.128, label %for.body.4
for.end.128: ; preds = %for.inc.126, %for.cond.2.preheader
br i1 false, label %cond.false, label %cond.end
cond.false: ; preds = %for.end.128
unreachable
cond.end: ; preds = %for.end.128
unreachable
for.end.161: ; preds = %entry
ret void
}