[llvm] [SLP] Check for extracts, being replaced by original scalars, for user nodes (PR #149572)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 09:56:06 PDT 2025


================
@@ -10700,6 +10801,15 @@ void BoUpSLP::buildTreeRec(ArrayRef<Value *> VLRef, unsigned Depth,
     return;
   }
 
+  // Postpone vectorization, if the node is not profitable because of the
+  // external uses.
----------------
alexey-bataev wrote:

Ok, will try to make it more clear

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


More information about the llvm-commits mailing list