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
68 lines
2.4 KiB
LLVM
68 lines
2.4 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -relocation-model=static -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
|
|
|
|
; The inner loop should require only one add (and no leas either).
|
|
; rdar://8100380
|
|
|
|
@flags = external dso_local global [8192 x i8], align 16 ; <ptr> [#uses=1]
|
|
|
|
define void @foo() nounwind {
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: movl $2, %eax
|
|
; CHECK-NEXT: .p2align 4
|
|
; CHECK-NEXT: .LBB0_1: # %bb7
|
|
; CHECK-NEXT: # =>This Loop Header: Depth=1
|
|
; CHECK-NEXT: # Child Loop BB0_2 Depth 2
|
|
; CHECK-NEXT: movl $2, %ecx
|
|
; CHECK-NEXT: .p2align 4
|
|
; CHECK-NEXT: .LBB0_2: # %bb11
|
|
; CHECK-NEXT: # Parent Loop BB0_1 Depth=1
|
|
; CHECK-NEXT: # => This Inner Loop Header: Depth=2
|
|
; CHECK-NEXT: movb $0, flags(%rcx)
|
|
; CHECK-NEXT: addq %rax, %rcx
|
|
; CHECK-NEXT: cmpq $8192, %rcx # imm = 0x2000
|
|
; CHECK-NEXT: jl .LBB0_2
|
|
; CHECK-NEXT: # %bb.3: # %bb16
|
|
; CHECK-NEXT: # in Loop: Header=BB0_1 Depth=1
|
|
; CHECK-NEXT: incq %rax
|
|
; CHECK-NEXT: cmpq $8192, %rax # imm = 0x2000
|
|
; CHECK-NEXT: jl .LBB0_1
|
|
; CHECK-NEXT: # %bb.4: # %bb20
|
|
; CHECK-NEXT: retq
|
|
entry:
|
|
br label %bb
|
|
|
|
bb: ; preds = %entry
|
|
br label %bb7
|
|
|
|
bb7: ; preds = %bb, %bb17
|
|
%tmp8 = phi i64 [ %tmp18, %bb17 ], [ 2, %bb ] ; <i64> [#uses=2]
|
|
br label %bb10
|
|
|
|
bb10: ; preds = %bb7
|
|
br label %bb11
|
|
|
|
bb11: ; preds = %bb10, %bb11
|
|
%tmp12 = phi i64 [ %tmp14, %bb11 ], [ 2, %bb10 ] ; <i64> [#uses=2]
|
|
%tmp13 = getelementptr inbounds [8192 x i8], ptr @flags, i64 0, i64 %tmp12 ; <ptr> [#uses=1]
|
|
store i8 0, ptr %tmp13, align 1
|
|
%tmp14 = add nsw i64 %tmp12, %tmp8 ; <i64> [#uses=2]
|
|
%tmp15 = icmp slt i64 %tmp14, 8192 ; <i1> [#uses=1]
|
|
br i1 %tmp15, label %bb11, label %bb16
|
|
|
|
bb16: ; preds = %bb11
|
|
br label %bb17
|
|
|
|
bb17: ; preds = %bb16, %bb7
|
|
%tmp18 = add nsw i64 %tmp8, 1 ; <i64> [#uses=2]
|
|
%tmp19 = icmp slt i64 %tmp18, 8192 ; <i1> [#uses=1]
|
|
br i1 %tmp19, label %bb7, label %bb20
|
|
|
|
bb20: ; preds = %bb17
|
|
br label %bb21
|
|
|
|
bb21: ; preds = %bb20, %entry
|
|
ret void
|
|
}
|