[all-commits] [llvm/llvm-project] fe6290: [llvm] Use *Map::try_emplace (NFC) (#140843)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed May 21 01:11:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe6290ef5b6c77fcf1d9f27114b515dec2c7c0d3
      https://github.com/llvm/llvm-project/commit/fe6290ef5b6c77fcf1d9f27114b515dec2c7c0d3
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    M llvm/lib/Analysis/MLInlineAdvisor.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp
    M llvm/lib/LTO/LTOModule.cpp
    M llvm/lib/Target/Hexagon/HexagonGenMux.cpp
    M llvm/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    M llvm/lib/Transforms/Utils/SCCPSolver.cpp
    M llvm/lib/Transforms/Utils/ValueMapper.cpp
    M llvm/tools/llvm-mca/Views/BottleneckAnalysis.cpp

  Log Message:
  -----------
  [llvm] Use *Map::try_emplace (NFC) (#140843)

try_emplace can default-construct values, so we do not need to do so
on our own.  Plus, try_emplace(Key) is much shorter than
insert(std::make_pair(Key, Value()).



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