[llvm] [SLP] Check for extracts, being replaced by original scalars, for user nodes (PR #149572)
Gaƫtan Bossu via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 03:17:11 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.
----------------
gbossu wrote:
Nit: "external uses" is a bit confusing, as we are looking at instructions in the tree, not outside of it. Maybe rephrase as `because of scalar uses`?
https://github.com/llvm/llvm-project/pull/149572
More information about the llvm-commits
mailing list