[llvm] [LoopVectorize] Use new getUniqueLatchExitBlock routine (PR #108231)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 03:31:50 PST 2024


================
@@ -159,6 +159,16 @@ BlockT *LoopBase<BlockT, LoopT>::getUniqueExitBlock() const {
   return getExitBlockHelper(this, true).first;
 }
 
+template <class BlockT, class LoopT>
+BlockT *LoopBase<BlockT, LoopT>::getUniqueLatchExitBlock() const {
+  const BlockT *Latch = getLoopLatch();
+  assert(Latch && "Latch block must exists");
+  SmallVector<BlockT *, 4> ExitBlocks;
----------------
david-arm wrote:

Done!

https://github.com/llvm/llvm-project/pull/108231


More information about the llvm-commits mailing list