[SystemZ] Make more use of TMHH
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 13 Dec 2013 15:46:55 +0000 (15:46 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 13 Dec 2013 15:46:55 +0000 (15:46 +0000)
commit5f65b24e4df944e0dbab75aa4ee7efd12a1f820e
tree56910b2d0d1a7134fab9f0ba48127a65bc8d6c9b
parent8adb31eb3e7d981eaa9efa8ba5de7f81ff8273b7
[SystemZ] Make more use of TMHH

This originally came about after noticing that InstCombine turns
some of the TMHH (icmp (and...), ...) tests into plain comparisons.
Since there is no instruction to compare with a 64-bit immediate,
TMHH is generally better than an ordered comparison for the cases
that it can handle.

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