[llvm] [AMDGPU] Pick available high VGPR for CSR SGPR spilling (PR #78669)

Christudasan Devadasan via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 05:40:26 PST 2024


================
@@ -312,6 +312,35 @@ bool SIMachineFunctionInfo::isCalleeSavedReg(const MCPhysReg *CSRegs,
   return false;
 }
 
+void SIMachineFunctionInfo::shiftSpillPhysVGPRsToLowestRange(
----------------
cdevadas wrote:

I'm not sure that's a good choice. The only common part I see is the MRI.replaceRegWith. 

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


More information about the llvm-commits mailing list