[llvm] [SampleFDO] Read call-graph matching recovered top-level function profile (PR #101053)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 17:34:40 PDT 2024


================
@@ -494,6 +511,11 @@ class SampleProfileReader {
 
   void setModule(const Module *Mod) { M = Mod; }
 
+  void setFuncNameToProfNameMap(
+      HashKeyMap<std::unordered_map, FunctionId, FunctionId> *FPMap) {
----------------
WenleiHe wrote:

nit: use reference instead of pointer for `FPMap`, so we don't need to check/assert non-null.

https://github.com/llvm/llvm-project/pull/101053


More information about the llvm-commits mailing list