[llvm] [NFC][AMDGPU] Compute always reserved registers once (PR #132006)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 23 22:30:39 PDT 2025
================
@@ -680,6 +684,12 @@ BitVector SIRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
// Reserve null register - it shall never be allocated
reserveRegisterTuples(Reserved, AMDGPU::SGPR_NULL64);
+ return this->AlwaysReservedRegs = Reserved;
----------------
optimisan wrote:
Made it a reference.
https://github.com/llvm/llvm-project/pull/132006
More information about the llvm-commits
mailing list