[SystemZ] Improve extload handling
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Mon, 16 Sep 2013 09:03:10 +0000 (09:03 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Mon, 16 Sep 2013 09:03:10 +0000 (09:03 +0000)
commit219d2b8695d4322b7a3d6b9892880e65915106a7
tree258f9c7ef657acf4759a8888b78921b8b9658edf
parent5fefc00bac5ddd6f0700e71169bd7823af6b7c65
[SystemZ] Improve extload handling

The port originally had special patterns for extload, mapping them to the
same instructions as sextload.  It seemed neater to have patterns that
match "an extension that is allowed to be signed" and "an extension that
is allowed to be unsigned".

This was originally meant to be a clean-up, but it does improve the handling
of promoted integers a little, as shown by args-06.ll.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190777 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZInstrInfo.td
lib/Target/SystemZ/SystemZOperators.td
test/CodeGen/SystemZ/args-06.ll