[PATCH] D65162: [llvm-profdata] Profile dump for compact binary format

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 09:25:16 PDT 2019


wmi added a comment.

Thanks for the patch.



================
Comment at: llvm/include/llvm/ProfileData/SampleProfReader.h:284
 
+  virtual void markAllFuncToUse() {}
+
----------------
We may not need markAllFuncToUse. We can just set UseAllFuncs to False inside of collectFuncsToUse. 

A related thing is that is it better to set UseAllFuncs to True by default and only set UseAllFuncs to False in collectFuncsToUse? The reason is we have some out-of-tree tools which needs to read profiles of all functions, so it will be easier for them by setting UseAllFuncs to True by default. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65162/new/

https://reviews.llvm.org/D65162





More information about the llvm-commits mailing list