[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 00:52:57 PDT 2026


================
@@ -2453,6 +2454,8 @@ void HexagonFrameLowering::optimizeSpillSlots(MachineFunction &MF,
   auto &HII = *HST.getInstrInfo();
   auto &HRI = *HST.getRegisterInfo();
   auto &MRI = MF.getRegInfo();
+  RegisterClassInfo RCI;
+  RCI.runOnMachineFunction(MF);
----------------
arsenm wrote:

We don't want these throwaway instances, this should be threaded from the pass manager analysis query. I'd leave the hexagon case out of this PR 

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


More information about the llvm-commits mailing list