aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-12-13 15:07:39 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-12-13 15:07:39 +0000
commitbd2f0e9cd00d0515015ac965758b602be750d2f1 (patch)
tree8d5dc148eb0d455cfd1e4f38ec5733c3406d340d /llvm/lib/CodeGen/CodeGen.cpp
parent57bfdb080bfa0f4a0dbc85d9e68467a369211901 (diff)
downloadllvm-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