Remove TargetInstrInfo::CommuteChangesDestination and added findCommutedOpIndices...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 10 Jul 2009 19:15:51 +0000 (19:15 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 10 Jul 2009 19:15:51 +0000 (19:15 +0000)
commit261ce1d5f89155d2e6f914f281db2004c89ee839
treeaae48da42d95072d15a7433f2500995e10f23e69
parentfd12da4d618538e45bdf4b5b89b26526c46a4444
Remove TargetInstrInfo::CommuteChangesDestination and added findCommutedOpIndices which returns the operand indices which are swapped (when applicable). This allows for some code clean up and future enhancements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75264 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/SimpleRegisterCoalescing.cpp
lib/CodeGen/TargetInstrInfoImpl.cpp
lib/CodeGen/VirtRegRewriter.cpp