Changes to support making the shift instructions be true BinaryOperators.
[oota-llvm.git] / lib / Analysis / ConstantFolding.cpp
index 1bf6b50333eeb94bcb85ea60e3e1dda186312d1b..25a64ab9a68cb938573b140ff6c2681b8f680b67 100644 (file)
@@ -216,10 +216,6 @@ Constant *llvm::ConstantFoldInstOperands(const Instruction* I,
   case Instruction::FCmp:
     return ConstantExpr::getCompare(cast<CmpInst>(I)->getPredicate(), Ops[0], 
                                     Ops[1]);
-  case Instruction::Shl:
-  case Instruction::LShr:
-  case Instruction::AShr:
-    return ConstantExpr::get(Opc, Ops[0], Ops[1]);
   case Instruction::Trunc:
   case Instruction::ZExt:
   case Instruction::SExt: