We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb09508 commit 777e72eCopy full SHA for 777e72e
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -25504,11 +25504,10 @@ SDValue DAGCombiner::visitVECTOR_INTERLEAVE(SDNode *N) {
25504
return SDValue();
25505
25506
// Check to see if the identical operand is a splat.
25507
- SDValue Splat = DAG.getSplatValue(N->getOperand(0));
25508
- if (!Splat)
+ if (!DAG.isSplatValue(N->getOperand(0)))
25509
25510
25511
- // Simply replace all results with the first operand.
+ // interleave splat(X), splat(X).... --> splat(X), splat(X)....
25512
SmallVector<SDValue, 4> Ops;
25513
Ops.append(N->op_values().begin(), N->op_values().end());
25514
return CombineTo(N, &Ops);
0 commit comments