================
@@ -570,6 +570,15 @@ unsigned GCNSubtarget::getMaxNumVGPRs(const 
MachineFunction &MF) const {
   return getMaxNumVGPRs(MF.getFunction());
 }
 
+unsigned GCNSubtarget::getSoftMaxNumVGPRs(const MachineFunction &MF) const {
+  unsigned N = getRegisterInfo()
+                   ->getAllocatableSet(MF, &AMDGPU::VGPR_32RegClass)
+                   .count();
----------------
arsenm wrote:

This needs to be spread everywhere (i.e., we're desperate for 
https://github.com/llvm/llvm-project/pull/164877 to finally be completed)

https://github.com/llvm/llvm-project/pull/173100
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to