Only collect subreg extracting copies for later coalescing.

This also avoids fatal copies from physregs.

llvm-svn: 108061
This commit is contained in:
Jakob Stoklund Olesen 2010-07-10 22:42:53 +00:00
parent a64a323564
commit ad89613b65
1 changed files with 1 additions and 1 deletions

View File

@ -1434,7 +1434,7 @@ bool TwoAddressInstructionPass::EliminateRegSequences() {
IsImpDef = false;
// Remember COPY sources. These might be candidate for coalescing.
if (DefMI->isCopy())
if (DefMI->isCopy() && DefMI->getOperand(1).getSubReg())
RealSrcs.push_back(DefMI->getOperand(1).getReg());
if (!Seen.insert(SrcReg) ||