[llvm] bf700c3 - [MemProf] Remove dead code (NFC) (#120156)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 17:15:28 PST 2024


Author: Teresa Johnson
Date: 2024-12-16T17:15:25-08:00
New Revision: bf700c39d1c9f88387bfe2ec4567567397200ea3

URL: https://github.com/llvm/llvm-project/commit/bf700c39d1c9f88387bfe2ec4567567397200ea3
DIFF: https://github.com/llvm/llvm-project/commit/bf700c39d1c9f88387bfe2ec4567567397200ea3.diff

LOG: [MemProf] Remove dead code (NFC) (#120156)

Remove unused collection of context size information that was likely
leftover from debugging / testing.

Added: 
    

Modified: 
    llvm/lib/Analysis/MemoryProfileInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/MemoryProfileInfo.cpp b/llvm/lib/Analysis/MemoryProfileInfo.cpp
index 0a6623c67d6bb3..217f304e30de1a 100644
--- a/llvm/lib/Analysis/MemoryProfileInfo.cpp
+++ b/llvm/lib/Analysis/MemoryProfileInfo.cpp
@@ -164,8 +164,6 @@ void CallStackTrie::addCallStack(
   assert(Curr);
   Curr->ContextSizeInfo.insert(Curr->ContextSizeInfo.end(),
                                ContextSizeInfo.begin(), ContextSizeInfo.end());
-  std::vector<ContextTotalSize> AllContextSizeInfo;
-  collectContextSizeInfo(Curr, AllContextSizeInfo);
 }
 
 void CallStackTrie::addCallStack(MDNode *MIB) {


        


More information about the llvm-commits mailing list