[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)
Paul Kirth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Dec 13 10:14:49 PST 2024
================
@@ -54,3 +54,45 @@ body: |
SI_SPILL_S64_SAVE renamable $sgpr4_sgpr5, %stack.0, implicit $exec, implicit $sgpr96_sgpr97_sgpr98_sgpr99, implicit $sgpr32 :: (store (s64) into %stack.0, align 4, addrspace 5)
...
+
+---
+name: sgpr_spill_s32_undef
+tracksRegLiveness: true
+machineFunctionInfo:
+ isEntryFunction: true
+ hasSpilledSGPRs: true
+ scratchRSrcReg: '$sgpr96_sgpr97_sgpr98_sgpr99'
+ stackPtrOffsetReg: '$sgpr32'
+stack:
+ - { id: 0, type: spill-slot, size: 4, alignment: 4, stack-id: sgpr-spill }
+body: |
+ bb.0:
+ ; CHECK-LABEL: name: sgpr_spill_s32_undef
+ ; CHECK: body:
+ ; CHECK-NEXT: bb.0:
+ ; CHECK-NOT: {{.+}}
----------------
ilovepi wrote:
What's the purpose of this check? It seems like if you don't want to have any output before the next check, you'd just use `CHECK-NEXT: ...` instead of having this between them.
https://github.com/llvm/llvm-project/pull/119684
More information about the llvm-branch-commits
mailing list