[PATCH] D127026: [CSSPGO][llvm-profgen] Reimplement computeSummaryAndThreshold using context trie
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 5 21:28:39 PDT 2022
hoy added inline comments.
================
Comment at: llvm/tools/llvm-profgen/ProfileGenerator.cpp:435
- } else {
- // This is for the case the input is a llvm sample profile.
- for (const auto &FS : ProfileMap) {
----------------
why delete this?
================
Comment at: llvm/tools/llvm-profgen/ProfileGenerator.cpp:1010
+ ContextTracker.createContextLessProfileMap(ContextLessProfiles);
+ ProfileGeneratorBase::computeSummaryAndThreshold(ContextLessProfiles, false);
+}
----------------
Is `false` needed here? We are passing in contextless profiles so merging them again inside `computeSummaryAndThreshold` should be fine?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127026/new/
https://reviews.llvm.org/D127026
More information about the llvm-commits
mailing list