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

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 20 16:10:01 PST 2023


================
@@ -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 *,
----------------
snehasish wrote:

Same concern of determinism here.

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


More information about the llvm-commits mailing list