[llvm] [LoopVectorize] Teach LoopVectorizationLegality about more early exits (PR #107004)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 02:04:56 PDT 2024
================
@@ -551,6 +589,16 @@ class LoopVectorizationLegality {
/// (potentially) make a better decision on the maximum VF and enable
/// the use of those function variants.
bool VecCallVariantsFound = false;
+
+ /// Indicates whether this loop has a speculative early exit, i.e. an
+ /// uncountable exiting block that is not the latch.
+ bool HasSpeculativeEarlyExit = false;
+
+ /// Keeps track of all the exits with known or countable exit-not-taken
----------------
david-arm wrote:
Adjusted the comment - hopefully makes more sense!
https://github.com/llvm/llvm-project/pull/107004
More information about the llvm-commits
mailing list