[llvm] [LoopVectorize] Add support for vectorisation of simple early exit loops (PR #88385)
Graham Hunter via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 06:29:13 PDT 2024
================
@@ -294,6 +294,10 @@ template <class BlockT, class LoopT> class LoopBase {
/// Otherwise return null.
BlockT *getUniqueExitBlock() const;
+ /// Return the exit block for the latch if one exists. This function assumes
+ /// the loop has a latch.
----------------
huntergr-arm wrote:
I think all loops have at least one latch (a branch back to the header of the loop). Perhaps 'This function assumes the loop has a single latch.'?
https://github.com/llvm/llvm-project/pull/88385
More information about the llvm-commits
mailing list