[llvm] [VPlan] Replace VPRegionBlock with explicit CFG before execute (NFCI). (PR #117506)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 11 05:02:07 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:
Introduce closer to use - why hoist (from line 7964 below)?
If set to null, will its uses still work ok?
Should getMiddleBlock() return null in the absence of a vector loop region?
https://github.com/llvm/llvm-project/pull/117506
More information about the llvm-commits
mailing list