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

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 03:41:50 PST 2024


Author: Akshat Oke
Date: 2024-11-05T17:11:47+05:30
New Revision: e76d9214c8d104cb04e7d164d281db312ffa6024

URL: https://github.com/llvm/llvm-project/commit/e76d9214c8d104cb04e7d164d281db312ffa6024
DIFF: https://github.com/llvm/llvm-project/commit/e76d9214c8d104cb04e7d164d281db312ffa6024.diff

LOG: [AMDGPU] Fix 3495d04 MIR test (#114963)

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

- Fixes #113129 test failure

Added: 
    

Modified: 
    llvm/test/CodeGen/MIR/AMDGPU/spill-phys-vgprs.mir

Removed: 
    


################################################################################
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


        


More information about the llvm-commits mailing list