[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)
commita075708abe83dac64400eb81011cb6e95791aa9e
tree5cfbce694f5547962eae524ad36c337daf0fce86
parentdeaa618cdc6340417fc66906ea0a08c9663eb74b
[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).

llvm-svn: 187571
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/test/CodeGen/SystemZ/int-cmp-09.ll
llvm/test/CodeGen/SystemZ/int-cmp-11.ll
llvm/test/CodeGen/SystemZ/int-cmp-22.ll
llvm/test/CodeGen/SystemZ/int-cmp-32.ll
llvm/test/CodeGen/SystemZ/int-cmp-34.ll