[SystemZ] SystemZElimCompare pass improved.
authorJonas Paulsson <jonas.paulsson@ericsson.com>
Thu, 8 Oct 2015 07:40:23 +0000 (07:40 +0000)
committerJonas Paulsson <jonas.paulsson@ericsson.com>
Thu, 8 Oct 2015 07:40:23 +0000 (07:40 +0000)
commit3d5f14c368671d3cb4df17d0d8913e98386d27e8
tree4dc70b68bc88ff73da800d4005a55decf43c649d
parent76e39b5ce861e9ba13e69197e24a6cdd1a83c4f9
[SystemZ] SystemZElimCompare pass improved.

Compare elimination extended to recognize load-and-test instructions used
for comparison and eliminate them the same way as with compare instructions.

Test case fp-cmp-05.ll updated to expect optimized results now also for z13.

The order of instruction shortening and compare elimination passes have been
changed so that opcodes do not have to be handled in both passes.

Reviewed by Ulrich Weigand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249666 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZElimCompare.cpp
lib/Target/SystemZ/SystemZTargetMachine.cpp
test/CodeGen/SystemZ/fp-cmp-05.ll