[llvm] [SLP] De-duplicate costing of perfect-diamond gather spills (PR #220569)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 06:56:57 PDT 2026


================
@@ -19040,6 +19045,78 @@ InstructionCost BoUpSLP::getSpillCost() {
     }
     return nullptr;
   };
+  auto IsCoveredByMatchingVectorEntry = [&](const TreeEntry *Gather,
+                                            const Loop *SpillLoop) -> bool {
+    assert(Gather->isGather());
----------------
alexey-bataev wrote:

Always add message to asserts

https://github.com/llvm/llvm-project/pull/220569


More information about the llvm-commits mailing list