llvm-6502/lib/Target/ARM
Chris Lattner 3751844b39 remove dead/redundant vars
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31435 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-03 23:48:56 +00:00
..
.cvsignore
ARM.h move ARMCondCodeToString to ARMAsmPrinter.cpp 2006-11-02 15:00:02 +00:00
ARM.td
ARMAsmPrinter.cpp move ARMCondCodeToString to ARMAsmPrinter.cpp 2006-11-02 15:00:02 +00:00
ARMFrameInfo.h
ARMInstrInfo.cpp
ARMInstrInfo.h
ARMInstrInfo.td remove dead/redundant vars 2006-11-03 23:48:56 +00:00
ARMISelDAGToDAG.cpp move ARMCondCodeToString to ARMAsmPrinter.cpp 2006-11-02 15:00:02 +00:00
ARMMul.cpp
ARMRegisterInfo.cpp
ARMRegisterInfo.h
ARMRegisterInfo.td
ARMTargetAsmInfo.cpp
ARMTargetAsmInfo.h
ARMTargetMachine.cpp revert previous patch 2006-11-03 03:08:28 +00:00
ARMTargetMachine.h
Makefile
README.txt

//===---------------------------------------------------------------------===//
// Random ideas for the ARM backend.
//===---------------------------------------------------------------------===//

Consider implementing a select with two conditional moves:

cmp x, y
moveq dst, a
movne dst, b

----------------------------------------------------------


%tmp1 = shl int %b, ubyte %c
%tmp4 = add int %a, %tmp1

compiles to

add r0, r0, r1, lsl r2

but

%tmp1 = shl int %b, ubyte %c
%tmp4 = add int %tmp1, %a

compiles to
mov r1, r1, lsl r2
add r0, r1, r0

----------------------------------------------------------

add an offset to FLDS/FLDD/FSTD/FSTS addressing mode

----------------------------------------------------------

the function

void %f() {
entry:
	call void %g( int 1, int 2, int 3, int 4, int 5 )
	ret void
}

declare void %g(int, int, int, int, int)

Only needs 8 bytes of stack space. We currently allocate 16.

----------------------------------------------------------

32 x 32 -> 64 multiplications currently uses two instructions. We
should try to declare smull and umull as returning two values.

----------------------------------------------------------

Implement addressing modes 2 (ldrb) and 3 (ldrsb)

----------------------------------------------------------