[llvm] [LV] Transform to handle exits in the scalar loop (PR #148626)
Graham Hunter via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 04:04:29 PST 2025
================
@@ -8202,6 +8205,8 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
auto VPlan0 = VPlanTransforms::buildVPlan0(
OrigLoop, *LI, Legal->getWidestInductionType(),
getDebugLocFromInstOrOperands(Legal->getPrimaryInduction()), PSE);
+ VPlan0->setEarlyExitContinuesInScalarLoop(Legal->hasUncountableEarlyExit() &&
+ HandleEarlyExitsInScalarTail);
----------------
huntergr-arm wrote:
I'll see what the feedback is on the overall vplan integration now that I've added the extra tests before doing something here.
https://github.com/llvm/llvm-project/pull/148626
More information about the llvm-commits
mailing list