[llvm-branch-commits] [llvm] [AMDGPU] Limit allocation of lo128 registers for occupancy (PR #173100)
Stanislav Mekhanoshin via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jan 15 13:10:49 PST 2026
================
@@ -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
More information about the llvm-branch-commits
mailing list