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:
parent
d96f5d09bb
commit
9b0f71f68f
@ -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
Block a user