[PATCH] D100528: [CSSPGO][llvm-profdata] Support trimming cold context when merging profiles
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 18 21:08:01 PDT 2021
wmi added inline comments.
================
Comment at: llvm/tools/llvm-profdata/CMakeLists.txt:2
set(LLVM_LINK_COMPONENTS
+ Analysis
Core
----------------
wenlei wrote:
> This is because we now use ProfileSummaryInfo.cpp, so we can get all consistent hot/cold threshold computation and related switches, though pulling in entire Analysis lib is less than ideal. I'm thinking about moving ProfileSummaryInfo into ProfileData/ProfileSummaryBuildder.cpo from Analysis/ProfileSummaryInfo.cpp. But I'd like to get feedback before I move things around.
Extract ProfileSummaryInfo from Analysis/ directory sounds reasonable to me. How about move it to Core -- lib/IR/ProfileSummary.cpp for example? The reason is ProfileSummaryInfo interface is used widely. If someday we want to use the interface in Core or Support which ProfileData depends on, it will introduce cyclic dependence. Putting it in Core will clear the problem.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100528/new/
https://reviews.llvm.org/D100528
More information about the llvm-commits
mailing list