[llvm-branch-commits] [llvm] [AMDGPU] Adds AGPR pressure during candidate init in GCN scheduler. (PR #185733)

Dhruva Chakrabarti via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 16 19:14:15 PDT 2026


dhruvachak wrote:

On the main branch, there was this method
```
unsigned getMaxNumAGPRs(const Function &F) const { return getMaxNumVGPRs(F); }
```
Additionally, the previous version of this patch added new getMaxNumAGPRs method that started from getTotalNumVGPRs. That could return an incorrect number of AGPRs, larger than what is addressable. All of that logic has been removed in this patch. Now, getMaxNumAGPRs goes through getMaxNumVectorRegs.

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


More information about the llvm-branch-commits mailing list