[llvm] Update amdgpu_gfx functions to use s0-s3 for inreg SGPR arguments on targets using scratch instructions for stack (PR #78553)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 02:50:45 PST 2024


================
@@ -633,7 +633,7 @@ bool AMDGPUCallLowering::lowerFormalArguments(
     const bool InReg = Arg.hasAttribute(Attribute::InReg);
 
     // SGPR arguments to functions not implemented.
-    if (!IsGraphics && InReg)
----------------
arsenm wrote:

This is the wrong change for this particular patch. You want the AllocateReg above determineAssignments 

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


More information about the llvm-commits mailing list