[llvm] [SLP] De-duplicate costing of perfect-diamond gather spills (PR #220569)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 06:25:08 PDT 2026
================
@@ -19040,6 +19045,77 @@ InstructionCost BoUpSLP::getSpillCost() {
}
return nullptr;
};
+ auto IsCoveredByMatchingVectorEntry = [&](const TreeEntry *Gather,
+ const Loop *SpillLoop) -> bool {
+ assert(Gather->isGather() && "Expected a Gather Entry!");
----------------
alexey-bataev wrote:
```suggestion
assert(Gather->isGather() && "Expected a gather/buildvector entry.");
```
https://github.com/llvm/llvm-project/pull/220569
More information about the llvm-commits
mailing list