diff options
author | Jay Foad <jay.foad@amd.com> | 2025-04-24 18:57:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-24 18:57:51 +0100 |
commit | 2bc6f9d4b6ff1d838f1c2d50cacbab6ba2f20bc9 (patch) | |
tree | 7c67c461289e0bffdcbdde83cb8f773f50e90f13 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 6e3b16bec3a3384d8d2deb23d770d1d6a7357c50 (diff) | |
download | llvm-2bc6f9d4b6ff1d838f1c2d50cacbab6ba2f20bc9.zip llvm-2bc6f9d4b6ff1d838f1c2d50cacbab6ba2f20bc9.tar.gz llvm-2bc6f9d4b6ff1d838f1c2d50cacbab6ba2f20bc9.tar.bz2 |
[TableGen] Only store direct superclasses in Record (#123072)
In Record only store the direct superclasses instead of all
superclasses. getSuperClasses recurses to find all superclasses when
necessary.
This gives a small reduction in memory usage. On lib/Target/X86/X86.td I
measured about 2.0% reduction in total bytes allocated (measured by
valgrind) and 1.3% reduction in peak memory usage (measured by
/usr/bin/time -v).
---------
Co-authored-by: Min-Yih Hsu <min@myhsu.dev>
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions