[all-commits] [llvm/llvm-project] b3b8a0: [mlir] Use *Map::try_emplace (NFC) (#143341)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Mon Jun 9 07:18:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3b8a097fe1d6eba4d8a125e90b04273e95e96eb
      https://github.com/llvm/llvm-project/commit/b3b8a097fe1d6eba4d8a125e90b04273e95e96eb
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-06-09 (Mon, 09 Jun 2025)

  Changed paths:
    M mlir/include/mlir/Debug/BreakpointManagers/TagBreakpointManager.h
    M mlir/lib/Bytecode/Writer/IRNumbering.cpp
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/Target/LLVMIR/LoopAnnotationTranslation.cpp
    M mlir/lib/Transforms/Utils/CFGToSCF.cpp
    M mlir/lib/Transforms/Utils/Inliner.cpp

  Log Message:
  -----------
  [mlir] Use *Map::try_emplace (NFC) (#143341)

- try_emplace(Key) is shorter than insert({Key, nullptr}).
- try_emplace performs value initialization without value parameters.
- We overwrite values on successful insertion anyway.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list