[llvm] [VPlan] Set branch weight metadata on middle term in VPlan (NFC) (PR #143035)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 12 04:16:16 PDT 2025
================
@@ -7295,11 +7322,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
VPlanTransforms::convertToConcreteRecipes(BestVPlan,
*Legal->getWidestInductionType());
- // Retrieve and store the middle block before dissolving regions. Regions are
- // dissolved after optimizing for VF and UF, which completely removes unneeded
- // loop regions first.
- VPBasicBlock *MiddleVPBB =
- BestVPlan.getVectorLoopRegion() ? BestVPlan.getMiddleBlock() : nullptr;
+
+ addBranchWeightToMiddleTerminator(BestVPlan, BestVF, OrigLoop);
----------------
ayalz wrote:
Could this be a VPlanTransform?
https://github.com/llvm/llvm-project/pull/143035
More information about the llvm-commits
mailing list