[PATCH] D128804: [greedyalloc] Return early when there is no register to allocate.

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 17:44:12 PDT 2022


xiangzhangllvm added inline comments.


================
Comment at: llvm/lib/CodeGen/RegAllocGreedy.cpp:2521
+  if (!HasVirtRegAlloc)
+    return false;
+
----------------
The logic is no problem.
Do you mind move the code to a function (e.g. hasVirtRegAlloc() ) to make the RAGreedy::runOnMachineFunction clean ?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128804



More information about the llvm-commits mailing list