[SystemZ] Bugfix: Don't add CC twice to new three-address instruction.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 4 Dec 2015 12:48:51 +0000 (12:48 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 4 Dec 2015 12:48:51 +0000 (12:48 +0000)
commitc9119982e4c708faaab5f76a0f4bb81f42afeec6
tree5725c09cddcc3bf9ae2e12e41af6436c211c1083
parenta18156c3b8d92d5eb1af043947d1b1461c84e40f
[SystemZ] Bugfix: Don't add CC twice to new three-address instruction.

Since BuildMI() automatically adds the implicit operands for a new instruction,
adding the old instructions CC operand resulted in that there were two CC imp-def
operands, where only one was marked as dead. This caused buildSchedGraph() to
miss dependencies on the CC reg.

Review by Ulrich Weigand

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