diff --git a/llvm/include/llvm/ProfileData/MemProf.h b/llvm/include/llvm/ProfileData/MemProf.h index f4f590a4edc9f..a56ad1e0dbbce 100644 --- a/llvm/include/llvm/ProfileData/MemProf.h +++ b/llvm/include/llvm/ProfileData/MemProf.h @@ -1147,18 +1147,6 @@ template class CallStackRadixTreeBuilder { return std::move(CallStackPos); } }; - -// Verify that each CallStackId is computed with hashCallStack. This function -// is intended to help transition from CallStack to CSId in -// IndexedAllocationInfo. -void verifyIndexedMemProfRecord(const IndexedMemProfRecord &Record); - -// Verify that each CallStackId is computed with hashCallStack. This function -// is intended to help transition from CallStack to CSId in -// IndexedAllocationInfo. -void verifyFunctionProfileData( - const llvm::MapVector - &FunctionProfileData); } // namespace memprof } // namespace llvm diff --git a/llvm/lib/ProfileData/MemProf.cpp b/llvm/lib/ProfileData/MemProf.cpp index 70741ee4850bd..20cc4eececc9b 100644 --- a/llvm/lib/ProfileData/MemProf.cpp +++ b/llvm/lib/ProfileData/MemProf.cpp @@ -537,22 +537,5 @@ template llvm::DenseMap computeFrameHistogram( llvm::MapVector> &MemProfCallStackData); - -void verifyIndexedMemProfRecord(const IndexedMemProfRecord &Record) { - for (const auto &AS : Record.AllocSites) { - assert(AS.CSId == hashCallStack(AS.CallStack)); - (void)AS; - } -} - -void verifyFunctionProfileData( - const llvm::MapVector - &FunctionProfileData) { - for (const auto &[GUID, Record] : FunctionProfileData) { - (void)GUID; - verifyIndexedMemProfRecord(Record); - } -} - } // namespace memprof } // namespace llvm diff --git a/llvm/lib/ProfileData/MemProfReader.cpp b/llvm/lib/ProfileData/MemProfReader.cpp index de5b4c23c58a0..7f88b318f6f18 100644 --- a/llvm/lib/ProfileData/MemProfReader.cpp +++ b/llvm/lib/ProfileData/MemProfReader.cpp @@ -549,8 +549,6 @@ Error RawMemProfReader::mapRawProfileToRecords() { } } - verifyFunctionProfileData(FunctionProfileData); - return Error::success(); }