[FastISel][AArch64] Fold the cmp into the select when possible.
authorJuergen Ributzka <juergen@apple.com>
Thu, 13 Nov 2014 00:36:43 +0000 (00:36 +0000)
committerJuergen Ributzka <juergen@apple.com>
Thu, 13 Nov 2014 00:36:43 +0000 (00:36 +0000)
commitb80d6be6d7b04ee033bd6ff9e0fe6d5e30c8a885
tree66ca62dac4a0fdc243b31a6d602b7ebf7f4804b3
parent8d6824ea4cec1e3d610245f543923d13363f0222
[FastISel][AArch64] Fold the cmp into the select when possible.

This folds the compare emission into the select emission when possible, so we
can directly use the flags and don't have to emit a separate compare.

Related to rdar://problem/18960150.

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