[llvm] [VPlan] Move tail folding out of VPlanPredicator. NFC (PR #176143)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 01:16:56 PST 2026


================
@@ -8481,7 +8483,8 @@ void LoopVectorizationPlanner::addReductionResultComputation(
     auto *RR = dyn_cast<VPReductionRecipe>(OrigExitingVPV->getDefiningRecipe());
     if (!PhiR->isInLoop() && CM.foldTailByMasking() &&
         (!RR || !RR->isPartialReduction())) {
-      VPValue *Cond = RecipeBuilder.getBlockInMask(PhiR->getParent());
+      VPValue *Cond = RecipeBuilder.getBlockInMask(
----------------
lukel97 wrote:

This part of the diff is now gone after #142285, but edited the TODO in foldTailByMasking to explicitly mention removing this bit in LoopVectorizationPlanner::addReductionResultComputation

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


More information about the llvm-commits mailing list