[FastISel][AArch64] Don't bail during simple GEP instruction selection.
authorJuergen Ributzka <juergen@apple.com>
Thu, 13 Nov 2014 20:50:44 +0000 (20:50 +0000)
committerJuergen Ributzka <juergen@apple.com>
Thu, 13 Nov 2014 20:50:44 +0000 (20:50 +0000)
commitadd7c56be5760d083e065feca565b6e404f2c788
tree3504a613d09e485e53cdb1b81bd6e1138bfdfcc1
parent01ab7a869d06efaa0949e9f6bac16a293115ceb9
[FastISel][AArch64] Don't bail during simple GEP instruction selection.

The generic FastISel code would bail, because it can't emit a sign-extend for
AArch64. This copies the code over and uses AArch64 specific emit functions.

This is not ideal and 'computeAddress' should handles this, so it can fold the
address computation into the memory operation.

I plan to clean up 'computeAddress' anyways, so I will add that in a future
commit.

Related to rdar://problem/18962471.

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