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

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 14:25:48 PST 2024


================
@@ -1629,6 +1704,11 @@ void CallsiteContextGraph<DerivedCCG, FuncTy,
     if (!Removed)
       Entry++;
   }
+
+  // Add the new nodes after the above loop so that the iteration is not
+  // invalidated.
+  for (auto &I : TailCallToContextNodeMap)
----------------
snehasish wrote:

A structured binding with variable names would be more readable than the `I.first` and `I.second` usage right now.

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


More information about the llvm-commits mailing list