[llvm] [CodeGen] Use RegisterClassInfo for remaining allocation-order users (PR #216510)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 16 11:47:09 PDT 2026


================
@@ -804,6 +795,7 @@ bool RegAllocPBQP::runOnMachineFunction(MachineFunction &MF) {
       createInlineSpiller({LIS, LiveStks, MDT, MBFI}, MF, VRM, DefaultVRAI));
 
   MF.getRegInfo().freezeReservedRegs();
+  RCI.runOnMachineFunction(MF);
----------------
arsenm wrote:

This should by handled by the pass manager. But I suspect this is unnecessary, and the prior freezeReserveRegs call is also unnecessary. Do the other RAs have this call now? I recall cleaning up unnecessary freezeReservedRegs calls, and PBQP likely got forgotten in that 

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


More information about the llvm-commits mailing list