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

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


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

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

>From e3411e07b4c00b9d788b773e13204ac4db2c42bb Mon Sep 17 00:00:00 2001
From: Akshat Oke <Akshat.Oke at amd.com>
Date: Tue, 5 Nov 2024 09:38:58 +0000
Subject: [PATCH] [AMDGPU] Fix 3495d04 MIR test

Needed to specify scratchRSrcReg and spreg in order to stop after
prologepilog
---
 llvm/test/CodeGen/MIR/AMDGPU/spill-phys-vgprs.mir | 5 +++++
 1 file changed, 5 insertions(+)

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