File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -618,14 +618,14 @@ void X86FoldTablesEmitter::run(formatted_raw_ostream &OS) {
618
618
uint8_t Opc =
619
619
getValueFromBitsInit (MemInst->TheDef ->getValueAsBitsInit (" Opcode" ));
620
620
621
- if (RegInsts.count (Opc) == 0 )
621
+ auto RegInstsIt = RegInsts.find (Opc);
622
+ if (RegInstsIt == RegInsts.end ())
622
623
continue ;
623
624
624
625
// Two forms (memory & register) of the same instruction must have the same
625
626
// opcode. try matching only with register form instructions with the same
626
627
// opcode.
627
- std::vector<const CodeGenInstruction *> &OpcRegInsts =
628
- RegInsts.find (Opc)->second ;
628
+ std::vector<const CodeGenInstruction *> &OpcRegInsts = RegInstsIt->second ;
629
629
630
630
auto Match = find_if (OpcRegInsts, IsMatch (MemInst, Records));
631
631
if (Match != OpcRegInsts.end ()) {
You can’t perform that action at this time.
0 commit comments