File tree 1 file changed +6
-8
lines changed 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -286,9 +286,6 @@ void ConvergingVLIWScheduler::initialize(ScheduleDAGMI *dag) {
286
286
}
287
287
288
288
void ConvergingVLIWScheduler::releaseTopNode (SUnit *SU) {
289
- if (SU->isScheduled )
290
- return ;
291
-
292
289
for (const SDep &PI : SU->Preds ) {
293
290
unsigned PredReadyCycle = PI.getSUnit ()->TopReadyCycle ;
294
291
unsigned MinLatency = PI.getLatency ();
@@ -298,13 +295,12 @@ void ConvergingVLIWScheduler::releaseTopNode(SUnit *SU) {
298
295
if (SU->TopReadyCycle < PredReadyCycle + MinLatency)
299
296
SU->TopReadyCycle = PredReadyCycle + MinLatency;
300
297
}
301
- Top.releaseNode (SU, SU->TopReadyCycle );
298
+
299
+ if (!SU->isScheduled )
300
+ Top.releaseNode (SU, SU->TopReadyCycle );
302
301
}
303
302
304
303
void ConvergingVLIWScheduler::releaseBottomNode (SUnit *SU) {
305
- if (SU->isScheduled )
306
- return ;
307
-
308
304
assert (SU->getInstr () && " Scheduled SUnit must have instr" );
309
305
310
306
for (SUnit::succ_iterator I = SU->Succs .begin (), E = SU->Succs .end ();
@@ -317,7 +313,9 @@ void ConvergingVLIWScheduler::releaseBottomNode(SUnit *SU) {
317
313
if (SU->BotReadyCycle < SuccReadyCycle + MinLatency)
318
314
SU->BotReadyCycle = SuccReadyCycle + MinLatency;
319
315
}
320
- Bot.releaseNode (SU, SU->BotReadyCycle );
316
+
317
+ if (!SU->isScheduled )
318
+ Bot.releaseNode (SU, SU->BotReadyCycle );
321
319
}
322
320
323
321
// / Does this SU have a hazard within the current instruction group.
You can’t perform that action at this time.
0 commit comments