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
37 lines
1.2 KiB
LLVM
37 lines
1.2 KiB
LLVM
; RUN: opt -passes=loop-unroll -mtriple=hexagon -S < %s | FileCheck %s
|
|
; Check that the loop is peeled twice for Hexagon.
|
|
; CHECK: while.body.peel
|
|
; CHECK: while.body.peel2
|
|
|
|
%struct.STREAM = type { %union.anon, i32, i32 }
|
|
%union.anon = type { ptr }
|
|
|
|
define void @function(ptr nocapture readonly %b) local_unnamed_addr {
|
|
entry:
|
|
%bitPtr3 = getelementptr inbounds %struct.STREAM, ptr %b, i32 0, i32 2
|
|
%0 = load i32, ptr %bitPtr3, align 4
|
|
%cmp11 = icmp ult i32 %0, 32
|
|
br i1 %cmp11, label %while.body.preheader, label %do.end
|
|
|
|
while.body.preheader:
|
|
%value2 = getelementptr inbounds %struct.STREAM, ptr %b, i32 0, i32 1
|
|
%1 = load i32, ptr %value2, align 4
|
|
%2 = load ptr, ptr %b, align 4
|
|
br label %while.body
|
|
|
|
while.body:
|
|
%bitPtr.014 = phi i32 [ %add, %while.body ], [ %0, %while.body.preheader ]
|
|
%value.013 = phi i32 [ %shl, %while.body ], [ %1, %while.body.preheader ]
|
|
%ptr.012 = phi ptr [ %incdec.ptr, %while.body ], [ %2, %while.body.preheader ]
|
|
%add = add nuw i32 %bitPtr.014, 8
|
|
%shr = lshr i32 %value.013, 24
|
|
%incdec.ptr = getelementptr inbounds i32, ptr %ptr.012, i32 1
|
|
store i32 %shr, ptr %ptr.012, align 4
|
|
%shl = shl i32 %value.013, 8
|
|
%cmp = icmp ult i32 %add, 17
|
|
br i1 %cmp, label %while.body, label %do.end
|
|
|
|
do.end:
|
|
ret void
|
|
}
|