[SystemZ] Optimize X [!=]= Y in cases where X - Y or Y - X is also computed
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 13 Dec 2013 15:50:30 +0000 (15:50 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 13 Dec 2013 15:50:30 +0000 (15:50 +0000)
commit584940e3c65aca9e8329cae7b3ffda8ea51da81d
treef141feacb23e1c3a331b58c72b1b42472c194daa
parent5f65b24e4df944e0dbab75aa4ee7efd12a1f820e
[SystemZ] Optimize X [!=]= Y in cases where X - Y or Y - X is also computed

In those cases it's better to compare the result of the subtraction
against zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197239 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
test/CodeGen/SystemZ/int-cmp-44.ll