aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-05-23 04:39:38 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-05-23 04:39:38 +0000
commit4d474cd5f18c35ac4882b48790b385397909792e (patch)
tree29b9af1ad93800c19a4f06d320c2ceadb0d6c1e4
parent27f6c138f7f1b67f3c6d7d3f9a1d105541cca481 (diff)
downloadexternal_llvm-4d474cd5f18c35ac4882b48790b385397909792e.zip
external_llvm-4d474cd5f18c35ac4882b48790b385397909792e.tar.gz
external_llvm-4d474cd5f18c35ac4882b48790b385397909792e.tar.bz2
Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51475 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 655ca4b..ce5f239 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -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;