[llvm] [MemProf] Change map to vector to avoid unstable iteration (PR #151039)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 07:42:06 PDT 2025
================
@@ -4457,14 +4457,24 @@ bool CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::assignFunctions() {
CallsiteToCalleeFuncCloneMap[Caller] = CalleeFunc;
};
+ // Information for a single clone of this Func.
+ struct FuncCloneInfo {
+ // The function clone.
+ FuncInfo FuncClone;
+ // Remappings of each call of interest (from original uncloned call to the
+ // corresponding cloned call in this function clone).
+ std::map<CallInfo, CallInfo> CallMap;
----------------
teresajohnson wrote:
PR151161. It is nfc so I'll submit once the pre-merge tests complete, but ptal if you have a chance.
https://github.com/llvm/llvm-project/pull/151039
More information about the llvm-commits
mailing list