[all-commits] [llvm/llvm-project] 465e0d: [BOLT] Avoid repeated hash lookups (NFC) (#140426)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sat May 17 19:44:17 PDT 2025


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

  Changed paths:
    M bolt/include/bolt/Profile/DataReader.h
    M bolt/lib/Profile/DataReader.cpp

  Log Message:
  -----------
  [BOLT] Avoid repeated hash lookups (NFC) (#140426)

We can use try_emplace to succinctly implement GetOrCreateFuncEntry
and GetOrCreateFuncMemEntry.  Since it's a bit mouthful to say
FuncBasicSampleData::ContainerTy(), this patch changes the second
parameters to default ones.



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