We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09a6f6 commit 850852eCopy full SHA for 850852e
llvm/lib/CodeGen/InlineSpiller.cpp
@@ -1578,7 +1578,8 @@ void HoistSpillHelper::runHoistSpills(
1578
for (auto *const SpillBB : SpillsInSubTree) {
1579
// When SpillBB is a BB contains original spill, insert the spill
1580
// to SpillsToRm.
1581
- if (SpillsToKeep.contains(SpillBB) && !SpillsToKeep[SpillBB]) {
+ if (auto It = SpillsToKeep.find(SpillBB);
1582
+ It != SpillsToKeep.end() && !It->second) {
1583
MachineInstr *SpillToRm = SpillBBToSpill[SpillBB];
1584
SpillsToRm.push_back(SpillToRm);
1585
}
0 commit comments