[SystemZ] Prefer comparisons with zero
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 1 Aug 2013 10:29:45 +0000 (10:29 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 1 Aug 2013 10:29:45 +0000 (10:29 +0000)
commit3237f88882eed8a67fa679f7071a5441c4306ac3
treee5faa397fcf09538d1cac31fe7668ea6c0b46771
parenta701de8d2433eac2033916ae6c1bc277415aefd4
[SystemZ] Prefer comparisons with zero

Convert >= 1 to > 0, etc.  Using comparison with zero isn't a win on its own,
but it exposes more opportunities for CC reuse (the next patch).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187571 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
test/CodeGen/SystemZ/int-cmp-09.ll
test/CodeGen/SystemZ/int-cmp-11.ll
test/CodeGen/SystemZ/int-cmp-22.ll
test/CodeGen/SystemZ/int-cmp-32.ll
test/CodeGen/SystemZ/int-cmp-34.ll