[llvm] [MemProf] Remove dead code (NFC) (PR #120156)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 14:44:00 PST 2024
https://github.com/teresajohnson created https://github.com/llvm/llvm-project/pull/120156
Remove unused collection of context size information that was likely
leftover from debugging / testing.
>From 0e6c6dc19ab195fbc9f5ba06cbb7dc586185d991 Mon Sep 17 00:00:00 2001
From: Teresa Johnson <tejohnson at google.com>
Date: Mon, 16 Dec 2024 14:42:07 -0800
Subject: [PATCH] [MemProf] Remove dead code (NFC)
Remove unused collection of context size information that was likely
leftover from debugging / testing.
---
llvm/lib/Analysis/MemoryProfileInfo.cpp | 2 --
1 file changed, 2 deletions(-)
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