DataFlowSanitizer: Instrumentation for memset.
[oota-llvm.git] / lib / Transforms / InstCombine / InstCombineShifts.cpp
index f9e94f225f2cc9eab12a3592fce1999d27054b99..8cf76e5e8a9f888c1bb557bad8d3ee3c98c6e987 100644 (file)
@@ -709,12 +709,6 @@ Instruction *InstCombiner::visitShl(BinaryOperator &I) {
       match(I.getOperand(1), m_Constant(C2)))
     return BinaryOperator::CreateShl(ConstantExpr::getShl(C1, C2), A);
 
-  // shl (c1 , add(y , c2)) -> (shl (shl(c1, c2)), y)
-  if (match(I.getOperand(0), m_Constant(C1)) &&
-      match(I.getOperand(1), m_Add(m_Value(A), m_Constant(C2)))) {
-    return BinaryOperator::CreateShl(ConstantExpr::getShl(C1, C2), A);
-  }
-
   return 0;
 }