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 -regalloc=greedy -mtriple=x86_64-unknown-linux-gnu < %s -o - | FileCheck %s
|
|
;
|
|
; The test is to check no redundent mov as follows will be generated in %while.body loop.
|
|
; .LBB0_2:
|
|
; movsbl %cl, %ecx
|
|
; movl %edx, %eax ==> This movl can be promoted outside of loop.
|
|
; shll $5, %eax
|
|
; ...
|
|
; movl %eax, %edx
|
|
; jne .LBB0_2
|
|
;
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: [[L0:.LBB0_[0-9]+]]: # %while.body
|
|
; CHECK: movl %[[REGA:.*]], %[[REGB:.*]]
|
|
; CHECK-NOT: movl %[[REGB]], %[[REGA]]
|
|
; CHECK: jne [[L0]]
|
|
;
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
@b = common local_unnamed_addr global ptr null, align 8
|
|
@a = common local_unnamed_addr global i32 0, align 4
|
|
|
|
define i32 @foo() local_unnamed_addr {
|
|
entry:
|
|
%t0 = load ptr, ptr @b, align 8
|
|
%t1 = load i8, ptr %t0, align 1
|
|
%cmp4 = icmp eq i8 %t1, 0
|
|
%t2 = load i32, ptr @a, align 4
|
|
br i1 %cmp4, label %while.end, label %while.body.preheader
|
|
|
|
while.body.preheader: ; preds = %entry
|
|
br label %while.body
|
|
|
|
while.body: ; preds = %while.body.preheader, %while.body
|
|
%t3 = phi i32 [ %add3, %while.body ], [ %t2, %while.body.preheader ]
|
|
%t4 = phi i8 [ %t5, %while.body ], [ %t1, %while.body.preheader ]
|
|
%conv = sext i8 %t4 to i32
|
|
%add = mul i32 %t3, 33
|
|
%add3 = add nsw i32 %add, %conv
|
|
store i32 %add3, ptr @a, align 4
|
|
%t5 = load i8, ptr %t0, align 1
|
|
%cmp = icmp eq i8 %t5, 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
|
|
%.lcssa = phi i32 [ %t2, %entry ], [ %add3, %while.end.loopexit ]
|
|
ret i32 %.lcssa
|
|
}
|