[llvm] [LV] Disable interleaving via hints for uncountable early exit loops (PR #145877)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 26 05:45:54 PDT 2025


================
@@ -10101,6 +10101,13 @@ bool LoopVectorizePass::processLoop(Loop *L) {
   // Get user vectorization factor and interleave count.
   ElementCount UserVF = Hints.getWidth();
   unsigned UserIC = Hints.getInterleave();
+  if (LVL.hasUncountableEarlyExit() && UserIC != 1 &&
+      !VectorizerParams::isInterleaveForced()) {
----------------
paulwalker-arm wrote:

Based on https://github.com/llvm/llvm-project/pull/133099#pullrequestreview-2961942936 Florian would prefer not to be able to override this.  Do we have tests that specifically care about interleaving? or can the restrict be removed?

https://github.com/llvm/llvm-project/pull/145877


More information about the llvm-commits mailing list