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
77 lines
2.3 KiB
YAML
77 lines
2.3 KiB
YAML
# RUN: llc %s -emit-call-site-info -run-pass=block-placement -tail-dup-placement-threshold=4 -o - | FileCheck %s
|
|
#
|
|
# Test case adapted from test/CodeGen/X86/taildup-heapallocsite.ll.
|
|
|
|
# CHECK-LABEL: callSites:
|
|
# CHECK-NEXT: - { bb: 1, offset: 1, fwdArgRegs:
|
|
# CHECK-NEXT: - { arg: 0, reg: '$rcx' } }
|
|
# CHECK-NEXT: - { bb: 2, offset: 1, fwdArgRegs:
|
|
# CHECK-NEXT: - { arg: 0, reg: '$rcx' } }
|
|
|
|
--- |
|
|
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-pc-windows-msvc19.22.27905"
|
|
|
|
define dso_local void @taildupit(ptr readonly %size_ptr) {
|
|
entry:
|
|
%tobool = icmp eq ptr %size_ptr, null
|
|
br i1 %tobool, label %cond.end, label %cond.true
|
|
|
|
cond.true: ; preds = %entry
|
|
%0 = load i32, ptr %size_ptr, align 4
|
|
br label %cond.end
|
|
|
|
cond.end: ; preds = %cond.true, %entry
|
|
%cond = phi i32 [ %0, %cond.true ], [ 1, %entry ]
|
|
%call = tail call ptr @alloc(i32 %cond)
|
|
tail call void @f2()
|
|
ret void
|
|
}
|
|
|
|
declare dso_local ptr @alloc(i32)
|
|
|
|
declare dso_local void @f2()
|
|
|
|
...
|
|
---
|
|
name: taildupit
|
|
tracksRegLiveness: true
|
|
liveins:
|
|
- { reg: '$rcx', virtual-reg: '' }
|
|
callSites:
|
|
- { bb: 3, offset: 0, fwdArgRegs:
|
|
- { arg: 0, reg: '$rcx' } }
|
|
body: |
|
|
bb.0.entry:
|
|
successors: %bb.1(0x30000000), %bb.2(0x50000000)
|
|
liveins: $rcx
|
|
|
|
$rsp = frame-setup SUB64ri8 $rsp, 40, implicit-def dead $eflags
|
|
frame-setup SEH_StackAlloc 40
|
|
frame-setup SEH_EndPrologue
|
|
TEST64rr renamable $rcx, renamable $rcx, implicit-def $eflags
|
|
JCC_1 %bb.2, 5, implicit killed $eflags
|
|
|
|
bb.1:
|
|
successors: %bb.3(0x80000000)
|
|
|
|
renamable $ecx = MOV32ri 1
|
|
JMP_1 %bb.3
|
|
|
|
bb.2.cond.true:
|
|
successors: %bb.3(0x80000000)
|
|
liveins: $rcx
|
|
|
|
renamable $ecx = MOV32rm killed renamable $rcx, 1, $noreg, 0, $noreg :: (load (s32) from %ir.size_ptr)
|
|
|
|
bb.3.cond.end:
|
|
liveins: $ecx
|
|
|
|
CALL64pcrel32 @alloc, csr_win64, implicit $rsp, implicit $ssp, implicit $ecx, implicit-def $rsp, implicit-def $ssp, implicit-def dead $rax
|
|
SEH_BeginEpilogue
|
|
$rsp = frame-destroy ADD64ri8 $rsp, 40, implicit-def dead $eflags
|
|
SEH_EndEpilogue
|
|
TAILJMPd64 @f2, csr_win64, implicit $rsp, implicit $ssp, implicit $rsp, implicit $ssp
|
|
|
|
...
|