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
This commit is contained in:
Bill Wendling
2008-11-26 22:37:40 +00:00
parent ab8b794a78
commit 3fafd93560
4 changed files with 40 additions and 6 deletions

View File

@@ -41,9 +41,11 @@ namespace X86 {
COND_NO = 10,
COND_NP = 11,
COND_NS = 12,
COND_O = 13,
COND_P = 14,
COND_S = 15,
COND_NC = 13,
COND_O = 14,
COND_P = 15,
COND_S = 16,
COND_C = 17,
// Artificial condition codes. These are used by AnalyzeBranch
// to indicate a block terminated with two conditional branches to