[llvm-branch-commits] [llvm] [LoopVectorizer] Prune VFs based on plan register pressure (PR #132190)
Sam Tebbs via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Apr 8 02:05:18 PDT 2025
================
@@ -7772,12 +7551,23 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
InstructionCost Cost = cost(*P, VF);
VectorizationFactor CurrentFactor(VF, Cost, ScalarCost);
- if (isMoreProfitable(CurrentFactor, BestFactor))
- BestFactor = CurrentFactor;
-
// If profitable add it to ProfitableVF list.
if (isMoreProfitable(CurrentFactor, ScalarFactor))
ProfitableVFs.push_back(CurrentFactor);
----------------
SamTebbs33 wrote:
Thanks for spotting that, done.
https://github.com/llvm/llvm-project/pull/132190
More information about the llvm-branch-commits
mailing list