[llvm] [NFC][AMDGPU] Compute always reserved registers once (PR #132006)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 13:47:28 PDT 2025
================
@@ -629,11 +629,16 @@ SIRegisterInfo::getMaxNumVectorRegs(const MachineFunction &MF) const {
return std::pair(MaxNumVGPRs, MaxNumAGPRs);
}
-BitVector SIRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
- BitVector Reserved(getNumRegs());
- Reserved.set(AMDGPU::MODE);
+BitVector SIRegisterInfo::AlwaysReservedRegs;
----------------
shiltian wrote:
You can just move this to `getAlwaysReservedRegs` and make it static there.
https://github.com/llvm/llvm-project/pull/132006
More information about the llvm-commits
mailing list