[llvm] [LV] Optimize VPWidenIntOrFpInductionRecipe for known TC (PR #118828)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 17 07:13:26 PST 2024
================
@@ -7657,6 +7657,9 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
OrigLoop->getHeader()->getContext());
VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
+ auto TC = PSE.getSE()->getSmallConstantTripCount(OrigLoop);
+ VPlanTransforms::optimizeForTCAndVF(BestVPlan, TC, BestVF);
----------------
david-arm wrote:
Hi @fhahn, I thought that you were planning to move optimizeForVFAndUF at some point so that it's called for every VF and UF during the planning stage, rather than after we've chosen the best VF and UF? If @hazzlim moves the changes into `optimizeForVFAndUF` would that interfere with that?
https://github.com/llvm/llvm-project/pull/118828
More information about the llvm-commits
mailing list