[llvm] AMDGPU: Allocate special SGPRs before user SGPR arguments (PR #78234)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 02:13:01 PST 2024
================
@@ -2990,13 +2994,8 @@ SDValue SITargetLowering::LowerFormalArguments(
}
// Start adding system SGPRs.
- if (IsEntryFunc) {
+ if (IsEntryFunc)
allocateSystemSGPRs(CCInfo, MF, *Info, CallConv, IsGraphics);
- } else {
- CCInfo.AllocateReg(Info->getScratchRSrcReg());
- if (!IsGraphics)
----------------
cdevadas wrote:
This check limits the call to `allocateSpecialInputSGPRs` from not calling for amdgpu_gfx functions. Are the ABI registers allocated by this function the same for both amdgpu device and gfx functions?
https://github.com/llvm/llvm-project/pull/78234
More information about the llvm-commits
mailing list