[FastISel][AArch64] Fix load/store with frame indices.
authorJuergen Ributzka <juergen@apple.com>
Mon, 27 Oct 2014 18:21:58 +0000 (18:21 +0000)
committerJuergen Ributzka <juergen@apple.com>
Mon, 27 Oct 2014 18:21:58 +0000 (18:21 +0000)
commit6de054a25acd3e3e031c013711e155309664fee7
tree57f458f8f5c524e2d8ab74675137165331351b32
parent4f8f0c5aa2a9d7cd5fa94469b0c9785f69e85196
[FastISel][AArch64] Fix load/store with frame indices.

At higher optimization levels the LLVM IR may contain more complex patterns for
loads/stores from/to frame indices. The 'computeAddress' function wasn't able to
handle this and triggered an assertion.

This fix extends the possible addressing modes for frame indices.

This fixes rdar://problem/18783298.

llvm-svn: 220700
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/fast-isel-addressing-modes.ll