[PATCH] D66529: [LOOPGUARD] Disable loop with multiple loop exiting blocks.

Whitney Tsang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 12:28:15 PDT 2019


Whitney marked an inline comment as done.
Whitney added inline comments.


================
Comment at: llvm/lib/Analysis/LoopInfo.cpp:372-375
+  SmallVector<BasicBlock *, 2> ExitBlocks;
+  getUniqueExitBlocks(ExitBlocks);
+  if (ExitBlocks.size() != 1)
     return nullptr;
----------------
Meinersbur wrote:
> There actually is a `LoopBase::getUniqueExitBlock()` with this code inside. Could you use that one?
Thanks for letting me know. Not sure how I could missed it.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D66529





More information about the llvm-commits mailing list