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.2 KiB
LLVM
71 lines
2.2 KiB
LLVM
; RUN: llc -mtriple=hexagon -enable-pipeliner -enable-pipeliner-opt-size \
|
|
; RUN: -verify-machineinstrs -hexagon-initial-cfg-cleanup=0 \
|
|
; RUN: -enable-aa-sched-mi=false -hexagon-expand-condsets=0 \
|
|
; RUN: < %s -pipeliner-experimental-cg=true | FileCheck %s
|
|
|
|
; Disable expand-condsets because it will assert on undefined registers.
|
|
|
|
; Test that we change the CFG correctly for pipelined loops where the trip
|
|
; count is a compile-time constant, and the trip count is the same as the
|
|
; number of prolog blocks (i.e., stages).
|
|
|
|
; CHECK: memb(r{{[0-9]+}}+#0) =
|
|
; CHECK: memb(r{{[0-9]+}}+#0) =
|
|
|
|
; Function Attrs: nounwind optsize
|
|
define void @f0(i1 %x, i32 %y, ptr %p1, ptr %p2, ptr %p3) #0 {
|
|
b0:
|
|
br label %b1
|
|
|
|
b1: ; preds = %b5, %b0
|
|
%v0 = load i16, ptr %p1, align 2, !tbaa !0
|
|
%v1 = sext i16 %v0 to i32
|
|
%v2 = load i16, ptr %p2, align 2, !tbaa !0
|
|
%v3 = sext i16 %v2 to i32
|
|
%v4 = and i32 %v1, 7
|
|
%v5 = and i32 %v3, 7
|
|
br label %b2
|
|
|
|
b2: ; preds = %b4, %b1
|
|
br label %b3
|
|
|
|
b3: ; preds = %b3, %b2
|
|
%v6 = phi i32 [ 0, %b2 ], [ %v22, %b3 ]
|
|
%v7 = add i32 %v6, %y
|
|
%v8 = icmp slt i32 %y, %v7
|
|
%v9 = add nsw i32 %v7, 1
|
|
%v10 = select i1 %x, i32 1, i32 %v9
|
|
%v11 = add i32 %v10, 0
|
|
%v12 = getelementptr inbounds i8, ptr null, i32 %v11
|
|
%v13 = load i8, ptr %v12, align 1, !tbaa !4
|
|
%v14 = zext i8 %v13 to i32
|
|
%v15 = mul i32 %v14, %v4
|
|
%v16 = add i32 %v15, 0
|
|
%v17 = mul i32 %v16, %v5
|
|
%v18 = add i32 %v17, 32
|
|
%v19 = add i32 %v18, 0
|
|
%v20 = lshr i32 %v19, 6
|
|
%v21 = trunc i32 %v20 to i8
|
|
store i8 %v21, ptr %p3, align 1, !tbaa !4
|
|
%v22 = add i32 %v6, 1
|
|
%v23 = icmp eq i32 %v22, 2
|
|
br i1 %v23, label %b4, label %b3
|
|
|
|
b4: ; preds = %b3
|
|
br i1 true, label %b5, label %b2
|
|
|
|
b5: ; preds = %b4
|
|
br i1 false, label %b1, label %b6
|
|
|
|
b6: ; preds = %b5
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { null_pointer_is_valid nounwind optsize "target-cpu"="hexagonv55" }
|
|
|
|
!0 = !{!1, !1, i64 0}
|
|
!1 = !{!"short", !2}
|
|
!2 = !{!"omnipotent char", !3}
|
|
!3 = !{!"Simple C/C++ TBAA"}
|
|
!4 = !{!2, !2, i64 0}
|