[SystemZ] Try reversing comparisons whose first operand is in memory
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 23 Aug 2013 11:27:19 +0000 (11:27 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 23 Aug 2013 11:27:19 +0000 (11:27 +0000)
commit35c93e4e42d7a35a90e89211fa62f478e25ba0a4
tree639fbed77642a320f45ade7a571b37f1fbdf7b3c
parent65ddcfa8c1c05aeecd9d4fb062bb121e376aaceb
[SystemZ] Try reversing comparisons whose first operand is in memory

This allows us to make more use of the many compare reg,mem instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189099 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
lib/Target/SystemZ/SystemZISelLowering.cpp
test/CodeGen/SystemZ/fp-cmp-01.ll
test/CodeGen/SystemZ/fp-cmp-02.ll
test/CodeGen/SystemZ/int-cmp-01.ll
test/CodeGen/SystemZ/int-cmp-02.ll
test/CodeGen/SystemZ/int-cmp-03.ll
test/CodeGen/SystemZ/int-cmp-04.ll
test/CodeGen/SystemZ/int-cmp-05.ll
test/CodeGen/SystemZ/int-cmp-06.ll
test/CodeGen/SystemZ/int-cmp-07.ll
test/CodeGen/SystemZ/int-cmp-08.ll
test/CodeGen/SystemZ/int-cmp-36.ll
test/CodeGen/SystemZ/int-cmp-37.ll
test/CodeGen/SystemZ/int-cmp-38.ll
test/CodeGen/SystemZ/int-cmp-39.ll
test/CodeGen/SystemZ/int-cmp-40.ll
test/CodeGen/SystemZ/int-cmp-41.ll
test/CodeGen/SystemZ/int-cmp-42.ll
test/CodeGen/SystemZ/int-cmp-43.ll