aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2025-04-24 18:57:51 +0100
committerGitHub <noreply@github.com>2025-04-24 18:57:51 +0100
commit2bc6f9d4b6ff1d838f1c2d50cacbab6ba2f20bc9 (patch)
tree7c67c461289e0bffdcbdde83cb8f773f50e90f13 /llvm/lib/Transforms/Utils/Local.cpp
parent6e3b16bec3a3384d8d2deb23d770d1d6a7357c50 (diff)
downloadllvm-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