[Mlir-commits] [mlir] [AsmParser] Avoid repeated hash lookups (NFC) (PR #109562)
Kazu Hirata
llvmlistbot at llvm.org
Sun Sep 22 00:42:33 PDT 2024
================
@@ -289,9 +289,9 @@ void AsmParserState::finalizeRegionDefinition() {
}
void AsmParserState::addDefinition(Block *block, SMLoc location) {
- auto it = impl->blocksToIdx.find(block);
- if (it == impl->blocksToIdx.end()) {
- impl->blocksToIdx.try_emplace(block, impl->blocks.size());
+ auto [it, inserted] =
----------------
kazutakahirata wrote:
It is used on line 302.
https://github.com/llvm/llvm-project/pull/109562
More information about the Mlir-commits
mailing list