diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-15 20:39:05 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-15 20:39:05 +0000 |
commit | 8d5aeb269869b66919864f93e706d054d142b29d (patch) | |
tree | a47c61cda8648d154571bf867fbe9f3056fa8e3e /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | fcece4d2162e47c0f7325d1c262f460ff078aab7 (diff) | |
download | llvm-8d5aeb269869b66919864f93e706d054d142b29d.zip llvm-8d5aeb269869b66919864f93e706d054d142b29d.tar.gz llvm-8d5aeb269869b66919864f93e706d054d142b29d.tar.bz2 |
IR: Move NumOperands from User to Value, NFC
Store `User::NumOperands` (and `MDNode::NumOperands`) in `Value`.
On 64-bit host architectures, this reduces `sizeof(User)` and all
subclasses by 8, and has no effect on `sizeof(Value)` (or, incidentally,
on `sizeof(MDNode)`).
On 32-bit host architectures, this increases `sizeof(Value)` by 4.
However, it has no effect on `sizeof(User)` and `sizeof(MDNode)`, so the
only concrete subclasses of `Value` that actually see the increase are
`BasicBlock`, `Argument`, `InlineAsm`, and `MDString`. Moreover, I'll
be shocked and confused if this causes a tangible memory regression.
This has no functionality change (other than memory footprint).
llvm-svn: 219845
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions