[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)
commit0af310d052c4593819fbfae54c68f183062b801f
treeedae9c45a7e32bb650587f6c89fef5c624bcedb8
parent7784992999aba8c254df9a250d11d4fec256912a
[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.

llvm-svn: 221923
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/fast-isel-gep.ll