summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ConnectionFileDescriptor.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-28 15:30:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-28 15:30:40 +0000
commit085b57941f0726d914ca3cfa0dd733cad7953238 (patch)
treea3e171b5381f2b3c19b0debcaadc48679550b60d /lldb/source/Core/ConnectionFileDescriptor.cpp
parentf5c07ada1d4026f49ff3f7721821a1a9e6070004 (diff)
downloadbcm5719-llvm-085b57941f0726d914ca3cfa0dd733cad7953238.tar.gz
bcm5719-llvm-085b57941f0726d914ca3cfa0dd733cad7953238.zip
InstCombine: Improvement to check if signed addition overflows.
This patch implements two things: 1. If we know one number is positive and another is negative, we return true as signed addition of two opposite signed numbers will never overflow. 2. Implemented TODO : If one of the operands only has one non-zero bit, and if the other operand has a known-zero bit in a more significant place than it (not including the sign bit) the ripple may go up to and fill the zero, but won't change the sign. e.x - (x & ~4) + 1 We make sure that we are ignoring 0 at MSB. Patch by Suyog Sarda. llvm-svn: 209746
Diffstat (limited to 'lldb/source/Core/ConnectionFileDescriptor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud