[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))
----------------
jayfoad wrote:

I really think these blocks should be 8-aligned. It's especially nasty that they are not even 4-aligned, since hardware requires 4-alignment for tuples of 3 or more SGPRs.

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


More information about the llvm-commits mailing list