[llvm] [AMDGPU] NFC: Add helper to query archVGPR (PR #102690)
Jeffrey Byrnes via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 15:49:46 PDT 2024
jrbyrnes wrote:
> Where is the use of it?
For intended use, see
https://github.com/llvm/llvm-project/pull/93090/files -- changes to llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp :: getRegisterPressures
I have not yet used getArchVGPRNum there, but I am working on putting together a body of work for that PR.
In this function, we copy over the GCNRegisterPressure into the Pressure vector. Pressure[AMDGPU::RegisterPressureSets::VGPR_32] should be the archVGPR pressure, but GCNRegisterPressure interface only has getVGPRNum which aggregates the archVGPR + AGPR pressure
https://github.com/llvm/llvm-project/pull/102690
More information about the llvm-commits
mailing list