]> granicus.if.org Git - llvm/commit
[AArch64] Improve codegen for inverted overflow checking intrinsics
authorAmara Emerson <aemerson@apple.com>
Mon, 9 Oct 2017 15:15:09 +0000 (15:15 +0000)
committerAmara Emerson <aemerson@apple.com>
Mon, 9 Oct 2017 15:15:09 +0000 (15:15 +0000)
commitf78df63bf0318d2f8daf33dc1ec6f5b69864c948
tree1d7dcf075cdbc2e26fa67ba1fbf1134be4a0498f
parent18fc4d6b1d866f52f3067ca6c50b1cc37c6f0dd4
[AArch64] Improve codegen for inverted overflow checking intrinsics

E.g. if we have a (xor(overflow-bit), 1) where overflow-bit comes from an
intrinsic like llvm.sadd.with.overflow then we can kill the xor and use the
inverted condition code for the CSEL.

rdar://28495949

Reviewed By: kristof.beyls

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

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