llvm-6502/lib/Target
Chris Lattner 86638b94c1 Compile this:
void %X(int %A) {
        %C = setlt int %A, 123          ; <bool> [#uses=1]
        br bool %C, label %T, label %F

T:              ; preds = %0
        call int %main( int 0 )         ; <int>:0 [#uses=0]
        ret void

F:              ; preds = %0
        ret void
}

to this:

X:
        save -96, %o6, %o6
        subcc %i0, 122, %l0
        bg .LBBX_2      ! F
        nop
...

not this:

X:
        save -96, %o6, %o6
        sethi 0, %l0
        or %g0, 1, %l1
        subcc %i0, 122, %l2
        bg .LBBX_4      !
        nop
.LBBX_3:        !
        or %g0, %l0, %l1
.LBBX_4:        !
        subcc %l1, 0, %l0
        bne .LBBX_2     ! F
        nop


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25833 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-31 05:05:52 +00:00
..
Alpha Update alpha to reflect recent constantfp legalize changes. It's not clear 2006-01-29 06:25:22 +00:00
CBackend
IA64 Targets all now request ConstantFP to be legalized into TargetConstantFP. 2006-01-29 06:26:08 +00:00
PowerPC add the 'lucas' optimization 2006-01-31 02:55:28 +00:00
Skeleton PHI and INLINEASM are now built-in instructions provided by Target.td 2006-01-27 01:46:15 +00:00
Sparc Compile this: 2006-01-31 05:05:52 +00:00
SparcV8 Compile this: 2006-01-31 05:05:52 +00:00
SparcV9 PHI and INLINEASM are now built-in instructions provided by Target.td 2006-01-27 01:46:15 +00:00
X86 Added custom lowering of fabs 2006-01-31 03:14:29 +00:00
Makefile
MRegisterInfo.cpp
SubtargetFeature.cpp
Target.td Subtarget feature can now set any variable to any value 2006-01-27 08:09:42 +00:00
TargetData.cpp
TargetFrameInfo.cpp
TargetInstrInfo.cpp
TargetMachine.cpp
TargetMachineRegistry.cpp
TargetSchedInfo.cpp
TargetSchedule.td
TargetSelectionDAG.td Targets all now request ConstantFP to be legalized into TargetConstantFP. 2006-01-29 06:26:08 +00:00
TargetSubtarget.cpp