OSDN Git Service

[TwoAddressInstruction] When commuting an instruction don't assume that the destinati...
authorCraig Topper <craig.topper@gmail.com>
Sun, 11 Sep 2016 22:10:42 +0000 (22:10 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 11 Sep 2016 22:10:42 +0000 (22:10 +0000)
commit661e8f4c30003452167834ad6a9c1940bc214ffc
tree4bcf826ffe73d2f671778bc9769cd22a791da813
parentdd7c4ea72507c039cb94eeb88524f319deb9d634
[TwoAddressInstruction] When commuting an instruction don't assume that the destination register is operand 0. Pass it from the caller.

In practice it probably is 0 so this may not be a functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281180 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TwoAddressInstructionPass.cpp