[FastISel][AArch64] Fold mul into the address computation of memory operations.
authorJuergen Ributzka <juergen@apple.com>
Wed, 17 Sep 2014 19:19:31 +0000 (19:19 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 17 Sep 2014 19:19:31 +0000 (19:19 +0000)
commit5461af97bcfb6f27be51cad2118cbebb87f1c78e
treec3963716f277af1d1723b256c96a0b9b67b729d0
parentb3edb564859b93eabc86392c38d925384f136e0e
[FastISel][AArch64] Fold mul into the address computation of memory operations.

Teach 'computeAddress' to also fold multiplies into the address computation
(when possible).

This fixes rdar://problem/18369443.

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