[llvm] [SLP]Exclude non-profitable subtrees. (PR #162018)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 8 07:11:09 PST 2025
================
@@ -8744,14 +8761,21 @@ void BoUpSLP::buildExternalUses(
// Skip in-tree scalars that become vectors
if (ArrayRef<TreeEntry *> UseEntries = getTreeEntries(U);
- !UseEntries.empty()) {
+ !UseEntries.empty() &&
----------------
RKSimon wrote:
won't any_of effectively do an empty() check as part of the iteration?
https://github.com/llvm/llvm-project/pull/162018
More information about the llvm-commits
mailing list