[llvm] [MemProf] Add CalleeGUIDs from profile to existing VP metadata (PR #171495)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 15 10:07:53 PST 2025
================
@@ -373,38 +373,57 @@ static void addVPMetadata(Module &M, Instruction &I,
if (!ClMemProfAttachCalleeGuids || CalleeGuids.empty())
return;
+ // Prepare the vector of value data, initializing from any existing
+ // value-profile metadata present on the instruction so that we merge the
+ // new CalleeGuids into the existing entries.
+ SmallVector<InstrProfValueData, 8> VDs;
----------------
teresajohnson wrote:
done
https://github.com/llvm/llvm-project/pull/171495
More information about the llvm-commits
mailing list