CommuteChangesDestination() should check if to-be-commuted instruction defines any...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 1 Jul 2009 08:29:08 +0000 (08:29 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 1 Jul 2009 08:29:08 +0000 (08:29 +0000)
commit498c2903e28b56b73b8056335ad7f1eb6347b8ed
tree6d4c3ab4fffbe4fffd767ba99d2b40d7d8175210
parent459a7c6b6ad9c4fcb9f119aa6eaaf2769b00d9b1
CommuteChangesDestination() should check if to-be-commuted instruction defines any register. Also teaches the default commuteInstruction() to commute instruction without definitions (e.g. X86::test / ARM::tsp).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74602 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInstrInfoImpl.cpp
test/CodeGen/ARM/2009-07-01-CommuteBug.ll [new file with mode: 0644]