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)
commit4964ba01f96d5b3a8fb27a7847c01666ee9b4ebd
tree55e2cc50aa80f644ac4f5a369b8f1e2de90779fc
parent70017fb01bba634649f7f3b1dee33c6cda0721d0
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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147720 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFastISel.cpp
test/CodeGen/ARM/fast-isel-intrinsic.ll
test/CodeGen/ARM/fast-isel.ll