[llvm] [AMDGPU] Change SGPR layout to striped caller/callee saved (PR #127353)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 07:34:30 PST 2025


================
@@ -91,7 +91,11 @@ def CSR_AMDGPU_AGPRs : CalleeSavedRegs<
 >;
 
 def CSR_AMDGPU_SGPRs : CalleeSavedRegs<
-  (sequence "SGPR%u", 30, 105)
+  (add (sequence "SGPR%u", 30, 37),
+       (sequence "SGPR%u", 46, 53),
+       (sequence "SGPR%u", 62, 69),
+       (sequence "SGPR%u", 78, 85),
+       (sequence "SGPR%u", 94, 105))
 >;
 
 def CSR_AMDGPU_SI_Gfx_SGPRs : CalleeSavedRegs<
----------------
jayfoad wrote:

@Flakebi should we make some similar change here for amdgpu_gfx?

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


More information about the llvm-commits mailing list