[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:00 PST 2023
================
@@ -1629,6 +1700,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:
auto& to avoid a copy
https://github.com/llvm/llvm-project/pull/75823
More information about the llvm-commits
mailing list