[llvm] [VPlan] Replace VPRegionBlock with explicit CFG before execute (NFCI). (PR #117506)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 13 14:38:33 PDT 2025
================
@@ -7859,6 +7855,9 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
BestVPlan, BestVF,
TTI.getRegisterBitWidth(TargetTransformInfo::RGK_FixedWidthVector));
VPlanTransforms::removeDeadRecipes(BestVPlan);
+
+ VPBasicBlock *MiddleVPBB =
+ BestVPlan.getVectorLoopRegion() ? BestVPlan.getMiddleBlock() : nullptr;
----------------
ayalz wrote:
Ah, right. Deserves a comment.
Also worth noting phase ordering aspects of disolveLoopRegions() - intentionally after optimizeForVFAndUF()?
https://github.com/llvm/llvm-project/pull/117506
More information about the llvm-commits
mailing list