Add back commit r210029.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 2 Jun 2014 22:01:04 +0000 (22:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 2 Jun 2014 22:01:04 +0000 (22:01 +0000)
commit27bd9b361bf11cd6dfe4ea3932adc6afadcf4a86
treeb5aa9a0be948b5435505f1dc50690efd35fb25d4
parent376d5ef3c67282e4037b69acbd10706af4f73cbc
Add back commit r210029.

The code was actually correct. Sorry for the confusion. I have expanded the
comment saying why the analysis is valid to avoid me misunderstaning it
again in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210052 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/ffs-1.ll
test/Transforms/InstCombine/rem.ll
test/Transforms/InstCombine/select.ll
test/Transforms/InstCombine/sext.ll
test/Transforms/InstCombine/zext-bool-add-sub.ll