[llvm] [LoopVectorize] Add support for vectorisation of more early exit loops (PR #88385)
Kiran Chandramohan via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 04:19:32 PDT 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>::getLatchExitBlock() const {
+ BlockT *Latch = getLoopLatch();
+ assert(Latch && "Latch block must exists");
----------------
kiranchandramohan wrote:
```suggestion
assert(Latch && "Latch block must exist");
```
https://github.com/llvm/llvm-project/pull/88385
More information about the llvm-commits
mailing list