From be0698559b20ae75b1dd91f515000bffe5b7f35a Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Thu, 12 Aug 2021 11:27:22 -0400 Subject: [PATCH] [InstCombine] remove shl(neg x), y transform This diff was accidentally committed with: 1b5a195845e1 --- llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp index ff94f39dc690..01f8e60db7e7 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp @@ -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;