[PATCH] D128859: [llvm-profgen] Do not cache the frame location stack during computing inlined context size
Lei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 11 09:30:46 PDT 2022
wlei added inline comments.
================
Comment at: llvm/tools/llvm-profgen/ProfiledBinary.h:503
const SampleContextFrameVector &
getFrameLocationStack(uint64_t Offset, bool UseProbeDiscriminator = false) {
auto I = Offset2LocStackMap.emplace(Offset, SampleContextFrameVector());
----------------
hoy wrote:
> How about extend this function with a parameter for caching or not?
It seems the return types of the two functions should be different, the one without caching should return the value type instead of the reference as we don't store it to a map.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128859/new/
https://reviews.llvm.org/D128859
More information about the llvm-commits
mailing list