[llvm] [TableGen] Add StringInit pools to RecordKeeperImpl::dumpAllocationStats. (PR #124164)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 09:55:17 PST 2025


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/124164

Remove duplicate print of TheBitsInitPool.

I don't know who or what uses this information. I happened to notice TheBitsInitPool was printed twice which lead to auditing the whole list.

>From e7797685c535470ad24092f551e02ad73376f7ca Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Thu, 23 Jan 2025 09:53:05 -0800
Subject: [PATCH] [TableGen] Add StringInit pools to
 RecordKeeperImpl::dumpAllocationStats.

Remove duplicate print of TheBitsInitPool.

I don't know who or what uses this information. I happened to notice
TheBitsInitPool was used twice which lead to auditing the whole list.
---
 llvm/lib/TableGen/Record.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp
index b76d7bcc95a56c..590656786bc664 100644
--- a/llvm/lib/TableGen/Record.cpp
+++ b/llvm/lib/TableGen/Record.cpp
@@ -106,7 +106,8 @@ void detail::RecordKeeperImpl::dumpAllocationStats(raw_ostream &OS) const {
   OS << "TheArgumentInitPool size = " << TheArgumentInitPool.size() << '\n';
   OS << "TheBitsInitPool size = " << TheBitsInitPool.size() << '\n';
   OS << "TheIntInitPool size = " << TheIntInitPool.size() << '\n';
-  OS << "TheBitsInitPool size = " << TheBitsInitPool.size() << '\n';
+  OS << "StringInitStringPool size = " << StringInitStringPool.size() << '\n';
+  OS << "StringInitCodePool size = " << StringInitCodePool.size() << '\n';
   OS << "TheListInitPool size = " << TheListInitPool.size() << '\n';
   OS << "TheUnOpInitPool size = " << TheUnOpInitPool.size() << '\n';
   OS << "TheBinOpInitPool size = " << TheBinOpInitPool.size() << '\n';



More information about the llvm-commits mailing list