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:
Evan Cheng 2007-10-09 23:36:27 +00:00
parent 80fe9e8459
commit 5edc57fa42

View File

@ -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));
}
}