[PATCH] D114284: [llvm-profgen] Truncate the context with zero probe ID
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 19 15:39:09 PST 2021
hoy accepted this revision.
hoy added a comment.
This revision is now accepted and ready to land.
lgtm, thanks.
================
Comment at: llvm/tools/llvm-profgen/ProfiledBinary.h:459
+ auto &Callsite = ProbeInlineContext[I];
+ // Ignore the context if the probe of the callsite is zero.
+ if(Callsite.second == 0 && I != ProbeInlineContext.size() - 1) {
----------------
nit: // clear the current context for an unknown probe
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114284/new/
https://reviews.llvm.org/D114284
More information about the llvm-commits
mailing list