Hacker's Delight says, "Signed integer overflow of addition occurs if and only
authorBill Wendling <isanbard@gmail.com>
Tue, 25 Nov 2008 08:12:19 +0000 (08:12 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 25 Nov 2008 08:12:19 +0000 (08:12 +0000)
commitc0062fb7557c9f4eb66b7d8fa7b6b0c765e579b8
treea3bad4a3ba9bd560ab22dd3cb74cbca2773ec693
parent3b48501adc540c834fe33bf2695377c7e1189d3c
Hacker's Delight says, "Signed integer overflow of addition occurs if and only
if the operands have the same sign and the sum has sign opposite to that of the
operands."

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60014 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp