[InstCombine] remove shl(neg x), y transform

This diff was accidentally committed with:
1b5a195845
This commit is contained in:
Sanjay Patel 2021-08-12 11:27:22 -04:00
parent 6de1dbbd09
commit be0698559b

View file

@ -1007,9 +1007,6 @@ Instruction *InstCombinerImpl::visitShl(BinaryOperator &I) {
return BinaryOperator::CreateAnd(Mask, X);
}
if (match(Op0, m_OneUse(m_Neg(m_Value(X)))))
return BinaryOperator::CreateNeg(Builder.CreateShl(X, Op1));
Constant *C1;
if (match(Op1, m_Constant(C1))) {
Constant *C2;