File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -415,16 +415,20 @@ void SystemZPreRASchedStrategy::initialize(ScheduleDAGMI *dag) {
415415 for (unsigned Idx = 0 , End = DAG->SUnits .size (); Idx != End; ++Idx) {
416416 const SUnit *SU = &DAG->SUnits [Idx];
417417 bool InDataSequence = true ;
418+ // One Data pred to MI just above, or no preds.
418419 unsigned NumPreds = 0 ;
419420 for (const SDep &Pred : SU->Preds )
420421 if (++NumPreds != 1 || Pred.getKind () != SDep::Data ||
421422 Pred.getSUnit ()->NodeNum != Idx - 1 )
422423 InDataSequence = false ;
424+ // One Data succ or no succs (ignoring ExitSU).
423425 unsigned NumSuccs = 0 ;
424426 for (const SDep &Succ : SU->Succs )
425427 if (Succ.getSUnit () != &DAG->ExitSU &&
426428 (++NumSuccs != 1 || Succ.getKind () != SDep::Data))
427429 InDataSequence = false ;
430+ // Another type of node or one that does not have a single data pred
431+ // ends any previous sequence.
428432 if (!InDataSequence || !NumPreds)
429433 countSequence ();
430434 if (InDataSequence)
You can’t perform that action at this time.
0 commit comments