[PATCH] D138515: [CodeGen][RegAllocFast] Map PhysReg to its current VirtReg

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 09:57:55 PST 2022


arsenm added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/MachineRegisterInfo.h:781
+  void setPhysToCurrentVirtReg(Register Reg) { PhysToCurrentVirtReg = Reg; }
+  Register getPhysToCurrentVirtReg() const { return PhysToCurrentVirtReg; }
+
----------------
Why pollute MRI with this, this is state local to RegAllocFast


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138515/new/

https://reviews.llvm.org/D138515



More information about the llvm-commits mailing list