[PATCH] D132600: [llvm-profdata] Handle internal linkage functions in profile supplementation
Rong Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 25 10:05:41 PDT 2022
xur added inline comments.
================
Comment at: llvm/tools/llvm-profdata/llvm-profdata.cpp:606
+ } else {
+ StaticFuncMap[NewName] = "---";
+ }
----------------
davidxl wrote:
> define a macro for the marker string.
Will do.
================
Comment at: llvm/tools/llvm-profdata/llvm-profdata.cpp:655
const sampleprof::FunctionSamples &FS = PD.second;
auto It = InstrProfileMap.find(FContext.toString());
+ if (It == InstrProfileMap.end()) {
----------------
davidxl wrote:
> Skip to the next (using continue) when FS is not interesting (cold etc)
OK.
================
Comment at: llvm/tools/llvm-profdata/llvm-profdata.cpp:667
+ }
+ if (FS.getMaxCountInside() > ColdSampleThreshold &&
It != InstrProfileMap.end() &&
----------------
davidxl wrote:
> continue when Itr == end or when Itr is not cold
Will change.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132600/new/
https://reviews.llvm.org/D132600
More information about the llvm-commits
mailing list