[PATCH] D92907: [RegisterClassInfo] Return non-zero for RC without allocatable reg

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 05:39:22 PST 2021


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM with one minor



================
Comment at: llvm/lib/CodeGen/RegisterClassInfo.cpp:193
+  unsigned RegPressureSetLimit = TRI->getRegPressureSetLimit(*MF, Idx);
+  if (NAllocatableRegs == 0)
+    return RegPressureSetLimit;
----------------
Please can you add a comment explaining the early-out?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92907



More information about the llvm-commits mailing list