[llvm] [MemProf] Handle missing tail call frames (PR #75823)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 11:50:21 PST 2024


================
@@ -630,6 +682,16 @@ class IndexCallsiteContextGraph
   std::map<const FunctionSummary *, ValueInfo> FSToVIMap;
 
   const ModuleSummaryIndex &Index;
+  function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
+      isPrevailing;
+
+  // Saves/owns the callsite info structures synthesized for missing tail call
+  // frames that we discover while building the graph.
+  // It maps from the summary of the function making the tail call, to a map
+  // of callee ValueInfo to corresponding synthesized callsite info.
+  std::map<FunctionSummary *,
----------------
teresajohnson wrote:

No ordering requirements for this one, so have changed to unordered_map.

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


More information about the llvm-commits mailing list