forked from OSchip/llvm-project
Only collect subreg extracting copies for later coalescing.
This also avoids fatal copies from physregs. llvm-svn: 108061
This commit is contained in:
parent
a64a323564
commit
ad89613b65
|
@ -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) ||
|
||||
|
|
Loading…
Reference in New Issue