Generate something sensible for an [SU]ADDO op when the overflow/carry flag is
authorBill Wendling <isanbard@gmail.com>
Wed, 26 Nov 2008 22:37:40 +0000 (22:37 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 26 Nov 2008 22:37:40 +0000 (22:37 +0000)
commit3fafd935607844085a23c012e2a8778fa97206a0
treef4f161d7b54e78e250c1789525bb7009601f3767
parentab8b794a789390ca2f1ad5372d4813911e306663
Generate something sensible for an [SU]ADDO op when the overflow/carry flag is
the conditional for the BRCOND statement. For instance, it will generate:

    addl %eax, %ecx
    jo LOF

instead of

    addl %eax, %ecx
    ; About 10 instructions to compare the signs of LHS, RHS, and sum.
    jl LOF

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60123 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
lib/Target/X86/X86InstrInfo.td