================
@@ -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();
----------------
rampitec wrote:

Restored original code until we have it.

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