[llvm] [MemProf] Reduce cloning overhead by sharing nodes when possible (PR #99832)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 12:03:48 PDT 2024


================
@@ -1757,6 +1815,7 @@ IndexCallsiteContextGraph::IndexCallsiteContextGraph(
           if (AN.MIBs.empty())
             continue;
           CallsWithMetadata.push_back({&AN});
+          CallToFunc[{&AN}] = FS;
----------------
teresajohnson wrote:

Sorry, I meant CallToFunc is a map from CallInfo, which contains a CallTy, that is a template parameter

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


More information about the llvm-commits mailing list