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

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 14:44:32 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-analysis

Author: Teresa Johnson (teresajohnson)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/120156.diff


1 Files Affected:

- (modified) llvm/lib/Analysis/MemoryProfileInfo.cpp (-2) 


``````````diff
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) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/120156


More information about the llvm-commits mailing list