[PATCH] D119436: RFC: RegAlloc: Avoid repeated calls to freezeReservedRegs

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 10 19:08:01 PST 2022


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/RegAllocBase.cpp:64
   Matrix = &mat;
-  MRI->freezeReservedRegs(vrm.getMachineFunction());
+  if (MRI->reservedRegsFrozen()) {
+#ifndef NDEBUG
----------------
Can this just assert the regs are frozen? Why does anything reach here without having done this already?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119436



More information about the llvm-commits mailing list