diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-12-13 15:07:39 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-12-13 15:07:39 +0000 |
commit | bd2f0e9cd00d0515015ac965758b602be750d2f1 (patch) | |
tree | 8d5dc148eb0d455cfd1e4f38ec5733c3406d340d /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 57bfdb080bfa0f4a0dbc85d9e68467a369211901 (diff) | |
download | llvm-bd2f0e9cd00d0515015ac965758b602be750d2f1.zip llvm-bd2f0e9cd00d0515015ac965758b602be750d2f1.tar.gz llvm-bd2f0e9cd00d0515015ac965758b602be750d2f1.tar.bz2 |
[SystemZ] Make more use of LTGFR
InstCombine turns (sext (trunc)) into (ashr (shl)), then converts any
comparison of the ashr against zero into a comparison of the shl against zero.
This makes sense in itself, but we want to undo it for z, since the sign-
extension instruction has a CC-setting form.
I've included tests for both the original and InstCombined variants,
but the former already worked. The patch fixes the latter.
llvm-svn: 197234
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions