From 6c1091ea3fb7ab31aa9b8406cb32b9a549c4e7cd Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Tue, 3 Jun 2025 16:05:16 -0700 Subject: Revert "[MemProf] Optionally save context size info on largest cold allocations" (#142688) Reverts llvm/llvm-project#142507 due to buildbot failures that I will look into tomorrow. --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp') diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 105edb9..47388c2 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -8164,14 +8164,6 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) { ContextSizes.reserve(NumContextSizeInfoEntries); for (unsigned J = 0; J < NumContextSizeInfoEntries; J++) { assert(ContextIdIndex < PendingContextIds.size()); - // Skip any 0 entries for MIBs without the context size info. - if (PendingContextIds[ContextIdIndex] == 0) { - // The size should also be 0 if the context was 0. - assert(!Record[I]); - ContextIdIndex++; - I++; - continue; - } // PendingContextIds read from the preceding FS_ALLOC_CONTEXT_IDS // should be in the same order as the total sizes. ContextSizes.push_back( -- cgit v1.1