[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:06:11 PDT 2024


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

It compiles if I change this to `CallToFunc[IndexCall(&AN)] = FS` (and similar for line 1852). Would that be clearer?

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


More information about the llvm-commits mailing list