File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1532,10 +1532,12 @@ void HoistSpillHelper::runHoistSpills(
1532
1532
MachineBasicBlock *Block = (*RIt)->getBlock ();
1533
1533
1534
1534
// If Block contains an original spill, simply continue.
1535
- if (SpillsToKeep.contains (*RIt) && !SpillsToKeep[*RIt]) {
1536
- SpillsInSubTreeMap[*RIt].first .insert (*RIt);
1537
- // SpillsInSubTreeMap[*RIt].second contains the cost of spill.
1538
- SpillsInSubTreeMap[*RIt].second = MBFI.getBlockFreq (Block);
1535
+ if (auto It = SpillsToKeep.find (*RIt);
1536
+ It != SpillsToKeep.end () && !It->second ) {
1537
+ auto &SIt = SpillsInSubTreeMap[*RIt];
1538
+ SIt.first .insert (*RIt);
1539
+ // Sit.second contains the cost of spill.
1540
+ SIt.second = MBFI.getBlockFreq (Block);
1539
1541
continue ;
1540
1542
}
1541
1543
You can’t perform that action at this time.
0 commit comments