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).

llvm-svn: 74602
2 files changed
tree: 68e4ecf5fe5fca37d97441de73f0f6df026a9cc8
  1. clang/
  2. compiler-rt/
  3. llvm/