File tree 1 file changed +7
-5
lines changed 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -965,7 +965,7 @@ void ScheduleDAGMI::moveInstruction(
965
965
966
966
bool ScheduleDAGMI::checkSchedLimit () {
967
967
#if LLVM_ENABLE_ABI_BREAKING_CHECKS && !defined(NDEBUG)
968
- if (( NumInstrsScheduled + 1 ) == MISchedCutoff && MISchedCutoff != ~0U ) {
968
+ if (NumInstrsScheduled == MISchedCutoff && MISchedCutoff != ~0U ) {
969
969
CurrentTop = CurrentBottom;
970
970
return false ;
971
971
}
@@ -1003,13 +1003,14 @@ void ScheduleDAGMI::schedule() {
1003
1003
1004
1004
bool IsTopNode = false ;
1005
1005
while (true ) {
1006
+ if (!checkSchedLimit ())
1007
+ break ;
1008
+
1006
1009
LLVM_DEBUG (dbgs () << " ** ScheduleDAGMI::schedule picking next node\n " );
1007
1010
SUnit *SU = SchedImpl->pickNode (IsTopNode);
1008
1011
if (!SU) break ;
1009
1012
1010
1013
assert (!SU->isScheduled && " Node already scheduled" );
1011
- if (!checkSchedLimit ())
1012
- break ;
1013
1014
1014
1015
MachineInstr *MI = SU->getInstr ();
1015
1016
if (IsTopNode) {
@@ -1637,13 +1638,14 @@ void ScheduleDAGMILive::schedule() {
1637
1638
1638
1639
bool IsTopNode = false ;
1639
1640
while (true ) {
1641
+ if (!checkSchedLimit ())
1642
+ break ;
1643
+
1640
1644
LLVM_DEBUG (dbgs () << " ** ScheduleDAGMILive::schedule picking next node\n " );
1641
1645
SUnit *SU = SchedImpl->pickNode (IsTopNode);
1642
1646
if (!SU) break ;
1643
1647
1644
1648
assert (!SU->isScheduled && " Node already scheduled" );
1645
- if (!checkSchedLimit ())
1646
- break ;
1647
1649
1648
1650
scheduleMI (SU, IsTopNode);
1649
1651
You can’t perform that action at this time.
0 commit comments