[llvm] [VPlan] Materialize constant vector trip counts before final opts. (PR #142309)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 03:59:48 PDT 2025
================
@@ -7329,6 +7329,7 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
BestVPlan, BestVF);
VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
VPlanTransforms::simplifyRecipes(BestVPlan, *Legal->getWidestInductionType());
+ VPlanTransforms::removeBranchOnConst(BestVPlan);
----------------
fhahn wrote:
Yep, this is to make use of the additional opportunities introduced after materializaing the vector trip count.
https://github.com/llvm/llvm-project/pull/142309
More information about the llvm-commits
mailing list