[llvm] [AMDGPU][CodeGen] Incrementally update reserved regs for SIPreAllocateWWMRegs pass in RegisterClassInfo (PR #212201)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 23 19:00:44 PDT 2026
================
@@ -180,8 +172,10 @@ void SIPreAllocateWWMRegs::rewriteRegs(MachineFunction &MF) {
RegsToRewrite.clear();
- // Update the set of reserved registers to include WWM ones.
+ // Update the set of reserved registers to include WWM ones
+ // without unnecessarily invalidating RegClassInfo.
MRI->freezeReservedRegs();
+ RegClassInfo.updateReservedRegs(MRI->getReservedRegs());
----------------
perlfu wrote:
Just call this `RCI` for consistency?
https://github.com/llvm/llvm-project/pull/212201
More information about the llvm-commits
mailing list