mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 12:50:00 +00:00
Fix an assertion in the scheduler. PR11386. No testcase included because it's rather delicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146083 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20aa12ae5c
commit
30c44e18bf
@ -811,12 +811,11 @@ void ScheduleDAGRRList::UnscheduleNodeBottomUp(SUnit *SU) {
|
||||
for (SUnit::succ_iterator I = SU->Succs.begin(), E = SU->Succs.end();
|
||||
I != E; ++I) {
|
||||
if (I->isAssignedRegDep()) {
|
||||
if (!LiveRegDefs[I->getReg()])
|
||||
++NumLiveRegs;
|
||||
// This becomes the nearest def. Note that an earlier def may still be
|
||||
// pending if this is a two-address node.
|
||||
LiveRegDefs[I->getReg()] = SU;
|
||||
if (!LiveRegDefs[I->getReg()]) {
|
||||
++NumLiveRegs;
|
||||
}
|
||||
if (LiveRegGens[I->getReg()] == NULL ||
|
||||
I->getSUnit()->getHeight() < LiveRegGens[I->getReg()]->getHeight())
|
||||
LiveRegGens[I->getReg()] = I->getSUnit();
|
||||
|
Loading…
Reference in New Issue
Block a user