Typo.
authorNick Lewycky <nicholas@mxc.ca>
Fri, 23 May 2008 04:39:38 +0000 (04:39 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 23 May 2008 04:39:38 +0000 (04:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51475 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 655ca4b0a660e287975474c856ae6c03cdfa87e4..ce5f2397d2251bc0d124c5f929ff8e59b68ed1f4 100644 (file)
@@ -2627,7 +2627,7 @@ Instruction *InstCombiner::visitAdd(BinaryOperator &I) {
     }
   }
 
-  // X + X --> X
+  // X + X --> X << 1
   if (I.getType()->isInteger() && I.getType() != Type::Int1Ty) {
     if (Instruction *Result = AssociativeOpt(I, AddRHS(RHS))) return Result;