[PATCH] D70379: [AMDGPU] Reserving VGPR for future SGPR Spill
Christudasan Devadasan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 7 09:40:16 PDT 2020
cdevadas added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp:315
- if (VGPRIndex == 0) {
+ if (VGPRIndex == 0 && !FuncInfo->VGPRReservedForSGPRSpill) {
LaneVGPR = TRI->findUnusedRegister(MRI, &AMDGPU::VGPR_32RegClass, MF);
----------------
Doesn't it limit the total allowable SGPR spills to 64?
What happens if more than 64 callee-saved SGPRs used in the functions?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70379/new/
https://reviews.llvm.org/D70379
More information about the llvm-commits
mailing list