[llvm] [AMDGPU] Fix 3495d04 MIR test (PR #114963)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 01:59:43 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-amdgpu

Author: Akshat Oke (optimisan)

<details>
<summary>Changes</summary>

Needed to specify scratchRSrcReg and spreg in order to stop after prologepilog.

---
Full diff: https://github.com/llvm/llvm-project/pull/114963.diff


1 Files Affected:

- (modified) llvm/test/CodeGen/MIR/AMDGPU/spill-phys-vgprs.mir (+5) 


``````````diff
diff --git a/llvm/test/CodeGen/MIR/AMDGPU/spill-phys-vgprs.mir b/llvm/test/CodeGen/MIR/AMDGPU/spill-phys-vgprs.mir
index 3961330070c779..4d6e33cf0b68aa 100644
--- a/llvm/test/CodeGen/MIR/AMDGPU/spill-phys-vgprs.mir
+++ b/llvm/test/CodeGen/MIR/AMDGPU/spill-phys-vgprs.mir
@@ -6,6 +6,11 @@
 ---
 name: csr_sgpr_spill
 tracksRegLiveness: true
+machineFunctionInfo:
+  isEntryFunction: false
+  scratchRSrcReg: '$sgpr0_sgpr1_sgpr2_sgpr3'
+  stackPtrOffsetReg: '$sgpr32'
+  hasSpilledSGPRs: true
 body: |
   bb.0:
     S_NOP 0

``````````

</details>


https://github.com/llvm/llvm-project/pull/114963


More information about the llvm-commits mailing list