Use getRegForValue() to materialize the address of ARM globals.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 7 Jan 2012 04:07:22 +0000 (04:07 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 7 Jan 2012 04:07:22 +0000 (04:07 +0000)
commit8cdce7e69074ab4db9769d82ba91a8bd8e399519
treec46975002e160367d0d02a24700253ed10561073
parent6cc8d49885981be90db5f6a82fa9435d5fb339e7
Use getRegForValue() to materialize the address of ARM globals.

This enables basic local CSE, giving us 20% smaller code for
consumer-typeset in -O0 builds.

<rdar://problem/10658692>

llvm-svn: 147720
llvm/lib/Target/ARM/ARMFastISel.cpp
llvm/test/CodeGen/ARM/fast-isel-intrinsic.ll
llvm/test/CodeGen/ARM/fast-isel.ll