[FastISel][AArch64] Teach the address computation code to also fold sign-/zero-extends.
authorJuergen Ributzka <juergen@apple.com>
Tue, 7 Oct 2014 03:40:06 +0000 (03:40 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 7 Oct 2014 03:40:06 +0000 (03:40 +0000)
commit301d3d04f026c7a35ebc6dc0e568dd1d58a6ed6a
treeb78a5c6b5d766e236c71515ecedddde80a975fd0
parent369208156696000086bb097f5337e507e4a5fd11
[FastISel][AArch64] Teach the address computation code to also fold sign-/zero-extends.

The code already folds sign-/zero-extends, but only if they are arguments to
mul and shift instructions. This extends the code to also fold them when they
are direct inputs.

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