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

Kazu Hirata via All-commits all-commits at lists.llvm.org
Thu May 22 23:51:20 PDT 2025


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

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
    M llvm/lib/CodeGen/NonRelocatableStringpool.cpp
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

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

try_emplace can default-construct values, so we do not need to do so
on our own.  Plus, try_emplace(Key) is much simpler/shorter than
insert({Key, LongValueType()}).



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