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

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 12:19:05 PDT 2019


Meinersbur added inline comments.


================
Comment at: llvm/lib/Analysis/LoopInfo.cpp:372-375
+  SmallVector<BasicBlock *, 2> ExitBlocks;
+  getUniqueExitBlocks(ExitBlocks);
+  if (ExitBlocks.size() != 1)
     return nullptr;
----------------
There actually is a `LoopBase::getUniqueExitBlock()` with this code inside. Could you use that one?


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