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 1c497c4 commit dbe8122Copy full SHA for dbe8122
llvm/utils/TableGen/X86InstrMappingEmitter.cpp
@@ -228,8 +228,9 @@ void X86InstrMappingEmitter::emitCompressEVEXTable(
228
// For each pre-compression instruction look for a match in the
229
// appropriate vector (instructions with the same opcode) using function
230
// object IsMatch.
231
- auto Match = llvm::find_if(CompressedInsts[Opcode], IsMatch(Inst));
232
- if (Match != CompressedInsts[Opcode].end())
+ const auto &Insts = CompressedInsts[Opcode];
+ auto Match = llvm::find_if(Insts, IsMatch(Inst));
233
+ if (Match != Insts.end())
234
NewInst = *Match;
235
}
236
0 commit comments