[llvm] [SLP] De-duplicate costing of perfect-diamond gather spills (PR #220569)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 11:54:47 PDT 2026
================
@@ -19079,7 +19154,8 @@ InstructionCost BoUpSLP::getSpillCost() {
all_of(Op->Scalars, [&](Value *V) {
return !isa<Instruction>(V) || L->isLoopInvariant(V);
}))
- AddCosts(Op, GetSpillScale(Parent));
+ if (!IsCoveredByMatchingVectorEntry(Op, L))
+ AddCosts(Op, GetSpillScale(Parent));
continue;
}
Budget = 0;
----------------
alexey-bataev wrote:
Need to delete this, otherwise it rewrites the Budget
https://github.com/llvm/llvm-project/pull/220569
More information about the llvm-commits
mailing list