[FastISel][AArch64] Add target-dependent instruction selection for Add/Sub.
authorJuergen Ributzka <juergen@apple.com>
Wed, 3 Sep 2014 01:38:36 +0000 (01:38 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 3 Sep 2014 01:38:36 +0000 (01:38 +0000)
commitdd7a7107c16fd6ec19dae44e4e830506a8fec168
tree4a0f6c72f012077c47a8eb13573ece5db5d72777
parent46d52b1627527f75c15ff269498e396e43d96f09
[FastISel][AArch64] Add target-dependent instruction selection for Add/Sub.

There is already target-dependent instruction selection support for Adds/Subs to
support compares and the intrinsics with overflow check. This takes advantage of
the existing infrastructure to also support Add/Sub, which allows the folding of
immediates, sign-/zero-extends, and shifts.

This fixes rdar://problem/18207316.

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