[llvm] [VPlan] Dispatch to multiple exit blocks via middle blocks. (PR #112138)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 05:01:57 PST 2024
================
@@ -1838,3 +1838,54 @@ void VPlanTransforms::convertToConcreteRecipes(VPlan &Plan) {
}
}
}
+
+void VPlanTransforms::handleUncountableEarlyExit(
+ VPlan &Plan, ScalarEvolution &SE, Loop *OrigLoop,
+ BasicBlock *UncountableExitingBlock, VPRecipeBuilder &RecipeBuilder) {
+ auto *LatchVPBB =
+ cast<VPBasicBlock>(Plan.getVectorLoopRegion()->getExiting());
+ VPBuilder Builder(LatchVPBB->getTerminator());
+ auto *MiddleVPBB = Plan.getMiddleBlock();
+ VPRegionBlock *LoopRegion = Plan.getVectorLoopRegion();
+ VPValue *EarlyExitTaken = nullptr;
----------------
ayalz wrote:
```suggestion
VPValue *IsEarlyExitTaken = nullptr;
```
more consistent with `IsLatchExiting` below.
https://github.com/llvm/llvm-project/pull/112138
More information about the llvm-commits
mailing list