Use TII->findCommutedOpIndices to find the commute operands (rather than guessing).
authorEvan Cheng <evan.cheng@apple.com>
Mon, 20 Jul 2009 21:16:08 +0000 (21:16 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 20 Jul 2009 21:16:08 +0000 (21:16 +0000)
commit33d0474bf5d5783cf9690bcab3eabd513d918fc5
tree1e90132e03510635e78a7a6402e07534c37fcfe3
parent4aebcb4f5f69e545da86f7482a19a6a3902a5f9f
Use TII->findCommutedOpIndices to find the commute operands (rather than guessing).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76472 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TwoAddressInstructionPass.cpp
test/CodeGen/Thumb/2009-07-20-TwoAddrBug.ll [new file with mode: 0644]