[FastISel][AArch64] Fold offset into the memory operation.
authorJuergen Ributzka <juergen@apple.com>
Fri, 1 Aug 2014 19:40:16 +0000 (19:40 +0000)
committerJuergen Ributzka <juergen@apple.com>
Fri, 1 Aug 2014 19:40:16 +0000 (19:40 +0000)
commit5dcb33bdbbccd5e713c043417efae6d089abea5b
tree37e6106ff3b3dba8e94574afac4c5bc8196da16e
parentf164bee0e07d7f12023e1b6e496cecae53c085a3
[FastISel][AArch64] Fold offset into the memory operation.

Fold simple offsets into the memory operation:
  add x0, x0, #8
  ldr x0, [x0]
-->
  ldr x0, [x0, #8]

Fixes <rdar://problem/17887945>.

llvm-svn: 214545
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/fast-isel-compute-address.ll [new file with mode: 0644]