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 658b260 commit d82ecccCopy full SHA for d82eccc
llvm/lib/CodeGen/RegAllocFast.cpp
@@ -81,8 +81,9 @@ class InstrPosIndexes {
81
/// instructions index has been reassigned.
82
bool getIndex(const MachineInstr &MI, uint64_t &Index) {
83
assert(MI.getParent() == CurMBB && "MI is not in CurMBB");
84
- if (Instr2PosIndex.count(&MI)) {
85
- Index = Instr2PosIndex[&MI];
+ auto It = Instr2PosIndex.find(&MI);
+ if (It != Instr2PosIndex.end()) {
86
+ Index = It->second;
87
return false;
88
}
89
0 commit comments