[FastISel][AArch64] Teach the address computation to also fold sub instructions.
authorJuergen Ributzka <juergen@apple.com>
Tue, 7 Oct 2014 03:40:03 +0000 (03:40 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 7 Oct 2014 03:40:03 +0000 (03:40 +0000)
commit369208156696000086bb097f5337e507e4a5fd11
tree39f6fd1c349865f728845e98478e3bcc0f3d6c1d
parentca07e256f62f772d14c42f41af46f2aeacc54983
[FastISel][AArch64] Teach the address computation to also fold sub instructions.

Tiny enhancement to the address computation code to also fold sub instructions
if the rhs is constant and can be folded into the offset.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219186 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FastISel.cpp
test/CodeGen/AArch64/fast-isel-int-ext.ll