llvm-svn: 51475
This commit is contained in:
Nick Lewycky 2008-05-23 04:39:38 +00:00
parent 4f3d878507
commit 8f3127c5b5
1 changed files with 1 additions and 1 deletions

View 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;