[all-commits] [llvm/llvm-project] 915fe8: [ctx_prof] Simplify ingestContext (NFC) (#109902)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue Sep 24 22:53:38 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 915fe84c6d78f3c0268f3de571eb323304089d23
https://github.com/llvm/llvm-project/commit/915fe84c6d78f3c0268f3de571eb323304089d23
Author: Kazu Hirata <kazu at google.com>
Date: 2024-09-24 (Tue, 24 Sep 2024)
Changed paths:
M llvm/include/llvm/ProfileData/PGOCtxProfReader.h
Log Message:
-----------
[ctx_prof] Simplify ingestContext (NFC) (#109902)
try_emplace can default-construct the value, so:
try_emplace(CSId, CallTargetMapTy())
try_emplace(CSId)
are equivalent to each other. We can further simplify the function
using the fact that Map.try_emplace(Key).first->second is the same as
Map[Key].
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