1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

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 d96f5d09bb
commit 9b0f71f68f

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