[llvm] [VPlan] Handle early exit before forming regions. (NFC) (PR #138393)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 05:31:35 PDT 2025
================
@@ -9383,7 +9383,8 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
VPlanTransforms::prepareForVectorization(
*Plan, Legal->getWidestInductionType(), PSE, RequiresScalarEpilogueCheck,
CM.foldTailByMasking(), OrigLoop,
- getDebugLocFromInstOrOperands(Legal->getPrimaryInduction()));
+ getDebugLocFromInstOrOperands(Legal->getPrimaryInduction()),
+ Legal->hasUncountableEarlyExit(), Range);
----------------
ayalz wrote:
Does passing `Legal->hasUncountableEarlyExit()` mean that (a) the loop has an uncountable early exit or (a+b) that this early exit should be sunk to the middle block - rather than (a+c: being sunk to the scalar remainder loop, i.e.,) leaving the last iteration be scalar?
https://github.com/llvm/llvm-project/pull/138393
More information about the llvm-commits
mailing list