OSDN Git Service

[AArch64] Do not abort if overflow check does not use EQ or NE.
authorJoel Galenson <jgalenson@google.com>
Tue, 5 Dec 2017 21:33:12 +0000 (21:33 +0000)
committerJoel Galenson <jgalenson@google.com>
Tue, 5 Dec 2017 21:33:12 +0000 (21:33 +0000)
commit555994d8cfd114fe3ba66ef69f7dcbcd181d90be
treed58e20c8b96fd658ca8f5ebee256db485c4ec1c0
parent6ba130a46976bdf7e00c74e1fa019cd06d0ae7bc
[AArch64] Do not abort if overflow check does not use EQ or NE.

As suggested by Eli Friedman, instead of aborting if an overflow check
uses something other than SETEQ or SETNE, simply do not apply the
optimization.

Differential Revision: https://reviews.llvm.org/D39147

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319837 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp