mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
Fix an extremely stupid bug that prevented first round of coalescing (physical registers only) from happening.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42820 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80fe9e8459
commit
5edc57fa42
@ -861,7 +861,8 @@ void SimpleRegisterCoalescing::CopyCoalesceInMBB(MachineBasicBlock *MBB,
|
||||
unsigned SrcReg, DstReg;
|
||||
if (!tii_->isMoveInstr(*Inst, SrcReg, DstReg)) continue;
|
||||
|
||||
if (TryAgain && !JoinCopy(Inst, SrcReg, DstReg, PhysOnly))
|
||||
bool Success = JoinCopy(Inst, SrcReg, DstReg, PhysOnly);
|
||||
if (TryAgain && !Success)
|
||||
TryAgain->push_back(getCopyRec(Inst, SrcReg, DstReg));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user