[llvm] [VPlan] Build initial VPlan 0 using HCFGBuilder for inner loops. (NFC) (PR #124432)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 01:01:38 PST 2025
================
@@ -9297,23 +9302,45 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
RecipeBuilder.collectScaledReductions(Range);
auto *MiddleVPBB = Plan->getMiddleBlock();
+ ReversePostOrderTraversal<VPBlockShallowTraversalWrapper<VPBlockBase *>> RPOT(
+ Plan->getVectorLoopRegion()->getEntry());
+
VPBasicBlock::iterator MBIP = MiddleVPBB->getFirstNonPhi();
- for (BasicBlock *BB : make_range(DFS.beginRPO(), DFS.endRPO())) {
----------------
ayalz wrote:
Also remove
```
LoopBlocksDFS DFS(OrigLoop);
DFS.perform(LI);
```
above which become dead.
https://github.com/llvm/llvm-project/pull/124432
More information about the llvm-commits
mailing list