[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:18:55 PDT 2024
================
@@ -1757,6 +1815,7 @@ IndexCallsiteContextGraph::IndexCallsiteContextGraph(
if (AN.MIBs.empty())
continue;
CallsWithMetadata.push_back({&AN});
+ CallToFunc[{&AN}] = FS;
----------------
teresajohnson wrote:
The other places like this were on the adjacent lines, so I went ahead and did a bit of refactoring to clean them all up.
https://github.com/llvm/llvm-project/pull/99832
More information about the llvm-commits
mailing list