[llvm] [LoopVectorize] Enable vectorization of uncountable loops with invariant bound loads via speculative hoisting and runtime versioning. (PR #195027)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 21:58:31 PDT 2026
================
@@ -8163,6 +8166,179 @@ static void connectEpilogueVectorLoop(VPlan &EpiPlan, Loop *L,
Phi.eraseFromParent();
}
+// Is profitable to generate runtime check dominated version of the loop? which
+// has speculatively hoisted the loop bound load.
+static bool isSpeculativeBoundVersioningProfitable() { return true; }
----------------
hiraditya wrote:
what is the idea behind having this function?
https://github.com/llvm/llvm-project/pull/195027
More information about the llvm-commits
mailing list