Extend the CoalescerPair interface to handle symmetric sub-register copies.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 15 May 2012 20:09:43 +0000 (20:09 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 15 May 2012 20:09:43 +0000 (20:09 +0000)
commit94b62ac5f3b2732251f164ee6feab2dd1a4b967f
treef955b38e24824cebc09246b1db7df832349b6bf5
parent6ed743ed4ec48fb9e3b0ef53adb0befd8e838ed8
Extend the CoalescerPair interface to handle symmetric sub-register copies.

Now both SrcReg and DstReg can be sub-registers of the final coalesced
register.

CoalescerPair::setRegisters still rejects such copies because
RegisterCoalescer doesn't yet handle them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156848 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
lib/CodeGen/RegisterCoalescer.h