AArch64: Do not create CCMP on multiple users.
authorMatthias Braun <matze@braunis.de>
Thu, 20 Aug 2015 23:33:31 +0000 (23:33 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 20 Aug 2015 23:33:31 +0000 (23:33 +0000)
commit05b3080b3c02aad92a370cb066cc8043bbb7f869
tree049edff034119c747a92d7bb58eacd334654db56
parentbdab9f9f82592215428e7991cc8713756ee39fd4
AArch64: Do not create CCMP on multiple users.

Create CMP;CCMP sequences from and/or trees does not gain us anything if
the and/or tree is materialized to a GP register anyway. While most of
the code already checked for hasOneUse() there was one important case
missing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245640 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/arm64-ccmp.ll