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 466753b commit 99ab848Copy full SHA for 99ab848
llvm/include/llvm/CodeGen/ModuloSchedule.h
@@ -359,8 +359,8 @@ class PeelingModuloScheduleExpander {
359
MachineBasicBlock *CreateLCSSAExitingBlock();
360
/// Helper to get the stage of an instruction in the schedule.
361
unsigned getStage(MachineInstr *MI) {
362
- if (CanonicalMIs.count(MI))
363
- MI = CanonicalMIs[MI];
+ if (auto It = CanonicalMIs.find(MI); It != CanonicalMIs.end())
+ MI = It->second;
364
return Schedule.getStage(MI);
365
}
366
/// Helper function to find the right canonical register for a phi instruction
0 commit comments