Skip to content

[TableGen] Add StringInit pools to RecordKeeperImpl::dumpAllocationStats. #124164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

topperc
Copy link
Collaborator

@topperc topperc commented Jan 23, 2025

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.

…ats.

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.
@topperc topperc requested a review from jurahul January 23, 2025 17:55
@llvmbot
Copy link
Member

llvmbot commented Jan 23, 2025

@llvm/pr-subscribers-tablegen

Author: Craig Topper (topperc)

Changes

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.


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

1 Files Affected:

  • (modified) llvm/lib/TableGen/Record.cpp (+2-1)
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';

Copy link
Contributor

@jurahul jurahul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@jayfoad jayfoad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems obvious

@topperc topperc merged commit 76ed4b1 into llvm:main Jan 23, 2025
7 of 10 checks passed
@topperc topperc deleted the pr/tablegen-alloc-stats branch January 23, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants