[llvm] [LSV] Merge contiguous chains across scalar types (PR #154069)

Drew Kersnar via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 2 09:58:55 PST 2025


================
@@ -1625,8 +1782,7 @@ std::vector<Chain> Vectorizer::gatherChains(ArrayRef<Instruction *> Instrs) {
   Ret.reserve(Chains.size());
   // Iterate over MRU rather than Chains so the order is deterministic.
   for (auto &E : MRU)
-    if (E.second.size() > 1)
-      Ret.emplace_back(std::move(E.second));
+    Ret.emplace_back(std::move(E.second));
----------------
dakersnar wrote:

Can you explain this change? Are you basically allowing chains that have a size of 1 in order to merge them later?

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


More information about the llvm-commits mailing list