File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,16 @@ void SystemZPostRASchedStrategy::enterMBB(MachineBasicBlock *NextMBB) {
94
94
// scheduled. If this is not possible, we are done.
95
95
MachineBasicBlock *SinglePredMBB =
96
96
getSingleSchedPred (MBB, MLI->getLoopFor (MBB));
97
- if (SinglePredMBB == nullptr ||
98
- SchedStates.find (SinglePredMBB) == SchedStates.end ())
97
+ if (SinglePredMBB == nullptr )
98
+ return ;
99
+ auto It = SchedStates.find (SinglePredMBB);
100
+ if (It == SchedStates.end ())
99
101
return ;
100
102
101
103
LLVM_DEBUG (dbgs () << " ** Continued scheduling from "
102
104
<< printMBBReference (*SinglePredMBB) << " \n " ;);
103
105
104
- HazardRec->copyState (SchedStates[SinglePredMBB] );
106
+ HazardRec->copyState (It-> second );
105
107
LLVM_DEBUG (HazardRec->dumpState (););
106
108
107
109
// Emit incoming terminator(s). Be optimistic and assume that branch
You can’t perform that action at this time.
0 commit comments