[SystemZ] Also accept ISD::USUBO in shouldFormOverflowOp().
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 20 Feb 2020 04:09:31 +0000 (20:09 -0800)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 3 Mar 2020 13:38:57 +0000 (14:38 +0100)
commitcdcce3cabf5b2e151fb324d7a7e4b6cb6e40716d
treec6860692ccb9194d2f64bb4bf4651f2b4c9242a3
parentac8680f0d86520fcf3cb319980be3a5817cee575
[SystemZ]  Also accept ISD::USUBO in shouldFormOverflowOp().

Forming subtract with overflow is beneficial on SystemZ, just like additions.

Review: Ulrich Weigand

Differential Revision: https://reviews.llvm.org/D75290
llvm/lib/Target/SystemZ/SystemZISelLowering.h
llvm/test/CodeGen/SystemZ/codegenprepare-form-OF-ops.ll [new file with mode: 0644]
llvm/test/CodeGen/SystemZ/dag-combine-05.ll