[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)
commit8d3bf10dd3074fe7ea83f86bd3a80782f309695d
tree4c3fd914c8cdfa494f992339df5d3e35fe372406
parent748566982ed8fe67d4f74ae49eca37ef9a08cbf2
[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>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214545 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FastISel.cpp
test/CodeGen/AArch64/fast-isel-compute-address.ll [new file with mode: 0644]