[llvm] [MemProf] Use radix tree for alloc contexts in bitcode summaries (PR #117066)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 12:33:40 PST 2024
================
@@ -7544,6 +7550,47 @@ void ModuleSummaryIndexBitcodeReader::parseTypeIdCompatibleVtableSummaryRecord(
parseTypeIdCompatibleVtableInfo(Record, Slot, TypeId);
}
+SmallVector<unsigned> ModuleSummaryIndexBitcodeReader::parseAllocInfoContext(
+ ArrayRef<uint64_t> Record, unsigned &I) {
+ SmallVector<unsigned> StackIdList;
+ // For backwards compatibility with old format before radix tree was
+ // used, simply see if we found a radix tree array record.
----------------
teresajohnson wrote:
No, the RadixArray will be non-empty if we found a radix tree array record. Clarified in comment
https://github.com/llvm/llvm-project/pull/117066
More information about the llvm-commits
mailing list