[llvm] [LV] Transform to handle exits in the scalar loop (PR #148626)

Gaƫtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 01:57:39 PST 2025


================
@@ -4552,7 +4555,7 @@ LoopVectorizationPlanner::selectInterleaveCount(VPlan &Plan, ElementCount VF,
   // We don't attempt to perform interleaving for loops with uncountable early
   // exits because the VPInstruction::AnyOf code cannot currently handle
   // multiple parts.
-  if (Plan.hasEarlyExit())
+  if (Plan.hasEarlyExit() || Plan.shouldEarlyExitContinueInScalarLoop())
----------------
gbossu wrote:

I feel `shouldEarlyExitContinueInScalarLoop()` implies `Plan.hasEarlyExit()`. Is that not the case?

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


More information about the llvm-commits mailing list