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
71 lines
2.1 KiB
LLVM
71 lines
2.1 KiB
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
|
|
; The early return is predicated, and the save-restore code is mixed together:
|
|
; {
|
|
; p0 = cmp.eq(r0, #0)
|
|
; if (p0.new) r17:16 = memd(r29 + #0)
|
|
; memd(r29+#0) = r17:16
|
|
; }
|
|
; {
|
|
; if (p0) dealloc_return
|
|
; }
|
|
; The problem is that the load will execute before the store, clobbering the
|
|
; pair r17:16.
|
|
;
|
|
|
|
; Validate that store executes before load.
|
|
; CHECK: memd{{.*}} = r17:16
|
|
; CHECK: r17:16 = memd
|
|
; CHECK: } :mem_noshuf
|
|
; CHECK-LABEL: LBB0_1:
|
|
|
|
target triple = "hexagon"
|
|
|
|
%struct.0 = type { ptr, ptr, ptr, ptr, ptr }
|
|
%struct.1 = type { [60 x i8], i32, ptr }
|
|
%struct.2 = type { i8, i8, i8, i8, %union.anon }
|
|
%union.anon = type { ptr }
|
|
%struct.3 = type { ptr, ptr }
|
|
|
|
@var = external hidden unnamed_addr global ptr, align 4
|
|
|
|
declare void @bar(ptr, i32) local_unnamed_addr #0
|
|
|
|
define void @foo() local_unnamed_addr #1 {
|
|
entry:
|
|
%.pr = load ptr, ptr @var, align 4, !tbaa !1
|
|
%cmp2 = icmp eq ptr %.pr, null
|
|
br i1 %cmp2, label %while.end, label %while.body.preheader
|
|
|
|
while.body.preheader: ; preds = %entry
|
|
br label %while.body
|
|
|
|
while.body: ; preds = %while.body.preheader, %while.body
|
|
%0 = phi ptr [ %4, %while.body ], [ %.pr, %while.body.preheader ]
|
|
%right = getelementptr inbounds %struct.0, ptr %0, i32 0, i32 4
|
|
%1 = bitcast ptr %right to ptr
|
|
%2 = load i32, ptr %1, align 4, !tbaa !5
|
|
%3 = bitcast ptr %0 to ptr
|
|
tail call void @bar(ptr %3, i32 20) #1
|
|
store i32 %2, ptr @var, align 4, !tbaa !1
|
|
%4 = inttoptr i32 %2 to ptr
|
|
%cmp = icmp eq i32 %2, 0
|
|
br i1 %cmp, label %while.end.loopexit, label %while.body
|
|
|
|
while.end.loopexit: ; preds = %while.body
|
|
br label %while.end
|
|
|
|
while.end: ; preds = %while.end.loopexit, %entry
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { optsize }
|
|
attributes #1 = { nounwind optsize }
|
|
|
|
!1 = !{!2, !2, i64 0}
|
|
!2 = !{!"any pointer", !3, i64 0}
|
|
!3 = !{!"omnipotent char", !4, i64 0}
|
|
!4 = !{!"Simple C/C++ TBAA"}
|
|
!5 = !{!6, !2, i64 16}
|
|
!6 = !{!"0", !2, i64 0, !2, i64 4, !2, i64 8, !2, i64 12, !2, i64 16}
|