[SystemZ] Bugfix: check CC reg liveness in SystemZShortenInst.
authorJonas Paulsson <jonas.paulsson@ericsson.com>
Thu, 8 Oct 2015 07:40:19 +0000 (07:40 +0000)
committerJonas Paulsson <jonas.paulsson@ericsson.com>
Thu, 8 Oct 2015 07:40:19 +0000 (07:40 +0000)
commit76e39b5ce861e9ba13e69197e24a6cdd1a83c4f9
tree3bf253b55e24826450cf0794ce4b830bca33f79a
parente6a99a2ba1c2ea7999fceb98b2aecafb84e424ca
[SystemZ] Bugfix: check CC reg liveness in SystemZShortenInst.

The following instruction shortening transformations would introduce a
definition of the CC reg, so therefore liveness of CC reg must be checked:

WFADB -> ADBR
WFSDB -> SDBR

Also add the CC reg implicit def operand to the MI in case of change of opcode.

Reviewed by Ulrich Weigand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249665 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZShortenInst.cpp