[llvm-branch-commits] [llvm] AMDGPU: Replace amdgpu-no-agpr with amdgpu-num-agpr (PR #129893)

Carl Ritson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 5 17:50:42 PST 2025


================
@@ -603,11 +601,7 @@ SIRegisterInfo::getMaxNumVectorRegs(const MachineFunction &MF) const {
 
     if (MinNumAGPRs == DefaultNumAGPR.first) {
       // Default to splitting half the registers if AGPRs are required.
-
-      if (MFI->mayNeedAGPRs())
-        MinNumAGPRs = MaxNumAGPRs = MaxVectorRegs / 2;
-      else
-        MinNumAGPRs = 0;
----------------
perlfu wrote:

I guess the removal of the forced minima yields no functional change?

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


More information about the llvm-branch-commits mailing list