File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
llvm/lib/CodeGen/LiveDebugValues Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2772,14 +2772,15 @@ void InstrRefBasedLDV::buildMLocValueMap(
2772
2772
// visited this pass, if they're not going to be already.
2773
2773
for (auto *s : MBB->successors ()) {
2774
2774
// Does branching to this successor represent a back-edge?
2775
- if (BBToOrder[s] > BBToOrder[MBB]) {
2775
+ unsigned Order = BBToOrder[s];
2776
+ if (Order > BBToOrder[MBB]) {
2776
2777
// No: visit it during this dataflow iteration.
2777
2778
if (OnWorklist.insert (s).second )
2778
- Worklist.push (BBToOrder[s] );
2779
+ Worklist.push (Order );
2779
2780
} else {
2780
2781
// Yes: visit it on the next iteration.
2781
2782
if (OnPending.insert (s).second )
2782
- Pending.push (BBToOrder[s] );
2783
+ Pending.push (Order );
2783
2784
}
2784
2785
}
2785
2786
}
@@ -3349,11 +3350,12 @@ void InstrRefBasedLDV::buildVLocValueMap(
3349
3350
if (!LiveInIdx.contains (s))
3350
3351
continue ;
3351
3352
3352
- if (BBToOrder[s] > BBToOrder[MBB]) {
3353
+ unsigned Order = BBToOrder[s];
3354
+ if (Order > BBToOrder[MBB]) {
3353
3355
if (OnWorklist.insert (s).second )
3354
- Worklist.push (BBToOrder[s] );
3356
+ Worklist.push (Order );
3355
3357
} else if (OnPending.insert (s).second && (FirstTrip || OLChanged)) {
3356
- Pending.push (BBToOrder[s] );
3358
+ Pending.push (Order );
3357
3359
}
3358
3360
}
3359
3361
}
You can’t perform that action at this time.
0 commit comments