[llvm] [LV] Move predication, early exit & region handling to VPlan0 (NFCI) (PR #185305)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 11 03:25:35 PDT 2026


================
@@ -8160,6 +8160,15 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
       CM.getInLoopReductions(), Hints.allowReordering());
 
   VPlanTransforms::simplifyRecipes(*VPlan0);
+  VPlanTransforms::handleEarlyExits(*VPlan0, Legal->hasUncountableEarlyExit());
+  VPlanTransforms::addMiddleCheck(*VPlan0,
+                                  /*RequiresScalarEpilogueCheck=*/true,
----------------
fhahn wrote:

Yep, removed thanks!

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


More information about the llvm-commits mailing list