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
52 lines
1.7 KiB
LLVM
52 lines
1.7 KiB
LLVM
; RUN: llc -mtriple=hexagon -enable-pipeliner -pipeliner-max-stages=2 < %s -pipeliner-experimental-cg=true | FileCheck %s
|
|
|
|
; Test that the generatePhi code doesn't rename a a Phi instruction that's defined
|
|
; in the same block. The bug causes a Phi to incorrectly depend on another Phi.
|
|
|
|
; CHECK: loop0(.LBB0_[[LOOP:.]],
|
|
; CHECK: .LBB0_[[LOOP]]:
|
|
; CHECK: memh([[REG0:(r[0-9]+)]]++#2:circ
|
|
; CHECK: = mem{{u?}}h([[REG0]]+#0)
|
|
; CHECK: endloop0
|
|
|
|
; Function Attrs: argmemonly nounwind
|
|
declare ptr @llvm.hexagon.circ.sthhi(ptr, i32, i32, i32) #1
|
|
|
|
; Function Attrs: nounwind optsize
|
|
define signext i16 @f0(ptr %a0, ptr %a1, i16 signext %a2, i16 signext %a3) #0 {
|
|
b0:
|
|
br label %b1
|
|
|
|
b1: ; preds = %b1, %b0
|
|
%v0 = phi ptr [ %v10, %b1 ], [ %a1, %b0 ]
|
|
%v1 = phi i32 [ %v13, %b1 ], [ 1, %b0 ]
|
|
%v2 = phi i16 [ %v12, %b1 ], [ 0, %b0 ]
|
|
%v3 = bitcast ptr %v0 to ptr
|
|
%v4 = add nsw i32 %v1, 10
|
|
%v5 = getelementptr inbounds i16, ptr %a0, i32 %v4
|
|
%v6 = load i16, ptr %v5, align 2, !tbaa !0
|
|
%v7 = sext i16 %v6 to i32
|
|
%v8 = add nsw i32 %v7, 40000
|
|
%v9 = tail call ptr @llvm.hexagon.circ.sthhi(ptr %v3, i32 %v8, i32 117441022, i32 2)
|
|
%v10 = bitcast ptr %v9 to ptr
|
|
%v11 = load i16, ptr %v10, align 2, !tbaa !0
|
|
%v12 = add i16 %v11, %v2
|
|
%v13 = add i32 %v1, 1
|
|
%v14 = icmp eq i32 %v13, 1000
|
|
br i1 %v14, label %b2, label %b1
|
|
|
|
b2: ; preds = %b1
|
|
br label %b3
|
|
|
|
b3: ; preds = %b2
|
|
ret i16 %v12
|
|
}
|
|
|
|
attributes #0 = { nounwind optsize "target-cpu"="hexagonv55" }
|
|
attributes #1 = { argmemonly nounwind }
|
|
|
|
!0 = !{!1, !1, i64 0}
|
|
!1 = !{!"short", !2}
|
|
!2 = !{!"omnipotent char", !3}
|
|
!3 = !{!"Simple C/C++ TBAA"}
|