llvm-6502/lib/CodeGen/SelectionDAG
Evan Cheng cc41586b9d Much improved pic jumptable codegen:
Then:
        call    "L1$pb"
"L1$pb":
        popl    %eax
		...
LBB1_1: # entry
        imull   $4, %ecx, %ecx
        leal    LJTI1_0-"L1$pb"(%eax), %edx
        addl    LJTI1_0-"L1$pb"(%ecx,%eax), %edx
        jmpl    *%edx

        .align  2
        .set L1_0_set_3,LBB1_3-LJTI1_0
        .set L1_0_set_2,LBB1_2-LJTI1_0
        .set L1_0_set_5,LBB1_5-LJTI1_0
        .set L1_0_set_4,LBB1_4-LJTI1_0
LJTI1_0:
        .long    L1_0_set_3
        .long    L1_0_set_2

Now:
        call    "L1$pb"
"L1$pb":
        popl    %eax
		...
LBB1_1: # entry
        addl    LJTI1_0-"L1$pb"(%eax,%ecx,4), %eax
        jmpl    *%eax

		.align  2
		.set L1_0_set_3,LBB1_3-"L1$pb"
		.set L1_0_set_2,LBB1_2-"L1$pb"
		.set L1_0_set_5,LBB1_5-"L1$pb"
		.set L1_0_set_4,LBB1_4-"L1$pb"
LJTI1_0:
        .long    L1_0_set_3
        .long    L1_0_set_2


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43924 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-09 01:32:10 +00:00
..
CallingConvLower.cpp
DAGCombiner.cpp If both parts of smul_lohi, etc. are used, don't simplify. If only one part is used, try simplify it. 2007-11-08 09:25:29 +00:00
LegalizeDAG.cpp Much improved pic jumptable codegen: 2007-11-09 01:32:10 +00:00
LegalizeDAGTypes.cpp Fix a thinko. 2007-11-02 15:18:06 +00:00
Makefile
ScheduleDAG.cpp Make labels work in asm blocks; allow labels as 2007-11-05 21:20:28 +00:00
ScheduleDAGList.cpp Make CalcLatency() non-recursive. 2007-10-15 21:33:22 +00:00
ScheduleDAGRRList.cpp Bug fix. Passive nodes are not in SUnitMap. 2007-11-09 01:27:11 +00:00
SelectionDAG.cpp If a call to getTruncStore is for a normal store, 2007-10-30 12:40:58 +00:00
SelectionDAGISel.cpp Make labels work in asm blocks; allow labels as 2007-11-05 21:20:28 +00:00
SelectionDAGPrinter.cpp
TargetLowering.cpp Much improved pic jumptable codegen: 2007-11-09 01:32:10 +00:00