Skip to content

Commit 95d8a50

Browse files
committed
[instcombine] Delete dead transform for rev(binop splat, rev(x))
We canonicalize splats to RHS, so this transform should be dead code.
1 parent 891f6ae commit 95d8a50

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3565,12 +3565,6 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
35653565
OldBinOp, OldBinOp->getName(),
35663566
II->getIterator()));
35673567
}
3568-
// rev(binop BO0Splat, rev(Y)) --> binop BO0Splat, Y
3569-
if (match(BO1, m_VecReverse(m_Value(Y))) && isSplatValue(BO0))
3570-
return replaceInstUsesWith(CI,
3571-
BinaryOperator::CreateWithCopiedFlags(
3572-
OldBinOp->getOpcode(), BO0, Y, OldBinOp,
3573-
OldBinOp->getName(), II->getIterator()));
35743568
}
35753569
// rev(unop rev(X)) --> unop X
35763570
if (match(Vec, m_OneUse(m_UnOp(m_VecReverse(m_Value(X)))))) {

0 commit comments

Comments
 (0)