[PATCH] D100528: [CSSPGO][llvm-profdata] Support trimming cold context when merging profiles
    Wenlei He via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Apr 19 10:10:34 PDT 2021
    
    
  
wenlei added inline comments.
================
Comment at: llvm/tools/llvm-profdata/CMakeLists.txt:2
 set(LLVM_LINK_COMPONENTS
+  Analysis
   Core
----------------
wmi wrote:
> 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. 
Sounds good. Thanks for the suggestion.
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