[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)
commitd3a04223e84797a1432f10d7a153da6c258017a9
tree71acfe7fa80f27d51263b16019b65982a1673817
parent866ee52df37b5b2229bdae201f8d5ecad41d4326
[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.

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