Skip to content

Commit 777e72e

Browse files
committed
Address review comments
1 parent cb09508 commit 777e72e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25504,11 +25504,10 @@ SDValue DAGCombiner::visitVECTOR_INTERLEAVE(SDNode *N) {
2550425504
return SDValue();
2550525505

2550625506
// Check to see if the identical operand is a splat.
25507-
SDValue Splat = DAG.getSplatValue(N->getOperand(0));
25508-
if (!Splat)
25507+
if (!DAG.isSplatValue(N->getOperand(0)))
2550925508
return SDValue();
2551025509

25511-
// Simply replace all results with the first operand.
25510+
// interleave splat(X), splat(X).... --> splat(X), splat(X)....
2551225511
SmallVector<SDValue, 4> Ops;
2551325512
Ops.append(N->op_values().begin(), N->op_values().end());
2551425513
return CombineTo(N, &Ops);

0 commit comments

Comments
 (0)