[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Dec 15 21:27:42 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: {{.+}}
----------------
arsenm wrote:
The -NEXT check is wrong because there is a blank line. I couldn't get the regex to match a blank line to work so I did this. Really update_mir_test_checks should understand how to match an empty block, anything here is a hack
https://github.com/llvm/llvm-project/pull/119684
More information about the llvm-branch-commits
mailing list