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)
commit57106d6dc01b33c8e129dfc75c88fa5117bc1730
tree7becfbacd47153101e1c265519bd19b5151aac3d
parentbf04f98c1f971c6362a26762e8c813228c4b8b43
Use TII->findCommutedOpIndices to find the commute operands (rather than guessing).

llvm-svn: 76472
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
llvm/test/CodeGen/Thumb/2009-07-20-TwoAddrBug.ll [new file with mode: 0644]