mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
Only collect subreg extracting copies for later coalescing.
This also avoids fatal copies from physregs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a8dab36f3d
commit
c0075cce7c
@ -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…
x
Reference in New Issue
Block a user