[llvm] [DAG] isSplatValue - only accept binop splats if they share all the same demanded undef elements (PR #135597)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 14 06:56:58 PDT 2025
================
@@ -3002,9 +3002,12 @@ bool SelectionDAG::isSplatValue(SDValue V, const APInt &DemandedElts,
APInt UndefLHS, UndefRHS;
SDValue LHS = V.getOperand(0);
SDValue RHS = V.getOperand(1);
+ // Ensure common demanded undef elts for both operands, otherwise we might
----------------
nikic wrote:
```suggestion
// Only propagate common undef elts for both operands, otherwise we might
```
maybe?
https://github.com/llvm/llvm-project/pull/135597
More information about the llvm-commits
mailing list