[llvm] [LoopVectorize] Add support for vectorisation of simple early exit loops (PR #88385)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 06:49:19 PDT 2024
================
@@ -696,6 +721,17 @@ class LoopAccessInfo {
/// Cache the result of analyzeLoop.
bool CanVecMem = false;
bool HasConvergentOp = false;
+ bool LoopMayFault = false;
+
+ /// Keeps track of the early-exiting block, if present.
+ BasicBlock *SpeculativeEarlyExitingBB = nullptr;
+
+ /// Keeps track of the successor of the early-exiting block, if present.
+ BasicBlock *SpeculativeEarlyExitBB = nullptr;
+
+ /// Keeps track of all the early exits with known or countable exit-not-taken
+ /// counts.
+ SmallVector<BasicBlock *, 4> CountableEarlyExitingBlocks;
----------------
david-arm wrote:
That makes sense!
https://github.com/llvm/llvm-project/pull/88385
More information about the llvm-commits
mailing list