[llvm] [CodeGen] Re-land reverted PR (#216510): "Use RegisterClassInfo for remaining allocation-order users" with additional PBQP fix. (PR #222450)
Nikhil Kotikalapudi via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 14:49:30 PDT 2026
================
@@ -818,6 +816,12 @@ bool RegAllocPBQP::runOnMachineFunction(MachineFunction &MF) {
MF.getRegInfo().freezeReservedRegs();
+ RegisterClassInfo &RCI =
+ getAnalysis<MachineRegisterClassInfoWrapperPass>().getRCI();
+ // freezeReservedRegs() may add reservations the shared analysis has not seen.
+ // Refresh RCI so getOrder() excludes them.
+ RCI.updateReservedRegs(MF.getRegInfo().getReservedRegs());
----------------
nkotikal wrote:
The other RAs weren’t failing on the WinEH test so I didnt touch them.
Is there a better route to take?
https://github.com/llvm/llvm-project/pull/222450
More information about the llvm-commits
mailing list