[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
Mon Jul 28 02:01:58 PDT 2025
================
@@ -17338,7 +17466,18 @@ class BoUpSLP::ShuffleInstructionBuilder final : public BaseShuffleAnalysis {
});
InVectors.front() = Vec;
}
- if (!SubVectors.empty()) {
+ if (SubVectors.size() == 1 && SubVectors.front().second == 0 &&
+ SubVectors.front().first->getVectorFactor() == CommonMask.size()) {
----------------
gbossu wrote:
Nit: Same here: would be nice to give a name to that condition.
https://github.com/llvm/llvm-project/pull/149572
More information about the llvm-commits
mailing list