Cleanup of the [SU]ADDO type legalization code. Patch by Duncan!
authorBill Wendling <isanbard@gmail.com>
Sat, 22 Nov 2008 07:24:01 +0000 (07:24 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 22 Nov 2008 07:24:01 +0000 (07:24 +0000)
commit253174bf50c932abaa680f465e2888c0e5272267
treebe3d2341639fa1e8150bce59509971f02b965fec
parent8ac0d4b4fb10406278cd600214cd3ee6d76620cd
Cleanup of the [SU]ADDO type legalization code. Patch by Duncan!

"It simplifies the type legalization part a bit, and produces better code by
teaching SelectionDAG about the extra bits in an i8 SADDO/UADDO node.  In
essence, I spontaneously decided that on x86 this i8 boolean result would be
either 0 or 1, and on other platforms 0/1 or 0/-1, depending on whether the
platform likes it's boolean zero extended or sign extended."

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59864 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp