[all-commits] [llvm/llvm-project] d2a103: [memprof] Remove const from the return type of toM...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue May 28 07:31:51 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d2a103e682d65c3bfdff1d6a6f7b114e6cf4ff76
https://github.com/llvm/llvm-project/commit/d2a103e682d65c3bfdff1d6a6f7b114e6cf4ff76
Author: Kazu Hirata <kazu at google.com>
Date: 2024-05-28 (Tue, 28 May 2024)
Changed paths:
M llvm/include/llvm/ProfileData/MemProf.h
M llvm/lib/ProfileData/MemProf.cpp
Log Message:
-----------
[memprof] Remove const from the return type of toMemProfRecord (#93415)
"const" being removed in this patch prevents the move semantics from
being used in:
AI.CallStack = Callback(IndexedAI.CSId);
With this patch on an indexed MemProf Version 2 profile, the cycle
count and instruction count go down by 13.3% and 26.3%, respectively,
with "llvm-profdata show" modified to deserialize all MemProfRecords.
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