Change the definition of TargetRegisterInfo::getCrossCopyRegClass to be more
authorEvan Cheng <evan.cheng@apple.com>
Wed, 9 Mar 2011 22:47:38 +0000 (22:47 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 9 Mar 2011 22:47:38 +0000 (22:47 +0000)
commit17adafc6c179f3bad757f932a13522851ee5171f
tree41102e58cdacc628332f62f671458e5138ee3867
parent7bff3e7c1bb1ad4ce061c17baa3cd84e81cef8d1
Change the definition of TargetRegisterInfo::getCrossCopyRegClass to be more
flexible.

If it returns a register class that's different from the input, then that's the
register class used for cross-register class copies.
If it returns a register class that's the same as the input, then no cross-
register class copies are needed (normal copies would do).
If it returns null, then it's not at all possible to copy registers of the
specified register class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127368 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
lib/Target/X86/X86RegisterInfo.cpp