mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix an assertion in the scheduler. PR11386. No testcase included because it's rather delicate.
llvm-svn: 146083
This commit is contained in:
parent
61b72249eb
commit
333928a702
@ -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