[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
================
@@ -365,8 +379,7 @@ class CallsiteContextGraph {
/// Save lists of calls with MemProf metadata in each function, for faster
/// iteration.
- std::vector<std::pair<FuncTy *, std::vector<CallInfo>>>
- FuncToCallsWithMetadata;
+ std::map<FuncTy *, std::vector<CallInfo>> FuncToCallsWithMetadata;
----------------
snehasish wrote:
An ordered map indexed by a pointer sounds like recipe for non-deterministic output. Can we use an unordered_map instead if determinism is unaffected or use a different key if ordering is required?
https://github.com/llvm/llvm-project/pull/75823
More information about the llvm-commits
mailing list