[llvm] [MemProf] Disable alloc context in combined summary for ndebug builds (PR #139161)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri May 9 13:18:14 PDT 2025
================
@@ -4349,9 +4366,11 @@ static void writeFunctionHeapProfileRecords(
Record.push_back(AI.Versions.size());
for (auto &MIB : AI.MIBs) {
Record.push_back((uint8_t)MIB.AllocType);
- // Record the index into the radix tree array for this context.
- assert(CallStackCount <= CallStackPos.size());
- Record.push_back(CallStackPos[CallStackCount++]);
+ if (PerModule || CombinedIndexMemProfContext) {
----------------
teresajohnson wrote:
Added a comment here. The below usage was pre-existing so I wasn't sure another comment was needed.
https://github.com/llvm/llvm-project/pull/139161
More information about the llvm-commits
mailing list