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

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 18:16:10 PDT 2022


LuoYuanke added inline comments.


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


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