[llvm] be06985 - [InstCombine] remove shl(neg x), y transform
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 12 08:28:37 PDT 2021
Author: Sanjay Patel
Date: 2021-08-12T11:27:22-04:00
New Revision: be0698559b20ae75b1dd91f515000bffe5b7f35a
URL: https://github.com/llvm/llvm-project/commit/be0698559b20ae75b1dd91f515000bffe5b7f35a
DIFF: https://github.com/llvm/llvm-project/commit/be0698559b20ae75b1dd91f515000bffe5b7f35a.diff
LOG: [InstCombine] remove shl(neg x), y transform
This diff was accidentally committed with:
1b5a195845e1
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Removed:
################################################################################
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;
More information about the llvm-commits
mailing list