summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-04-26 23:59:52 +0000
committerAdrian Prantl <aprantl@apple.com>2017-04-26 23:59:52 +0000
commit9d2f019fb63e80bfa9d50229b1f6213ccd11368a (patch)
tree1d61728491799367897347ba720a42c012dd6ef4 /clang/lib/Frontend/CompilerInvocation.cpp
parent6379cfc55323ea5edbb978da7556883aea910c5b (diff)
downloadbcm5719-llvm-9d2f019fb63e80bfa9d50229b1f6213ccd11368a.tar.gz
bcm5719-llvm-9d2f019fb63e80bfa9d50229b1f6213ccd11368a.zip
Turn DISubprogram into a variable-length node.
DISubprogram currently has 10 pointer operands, several of which are often nullptr. This patch reduces the amount of memory allocated by DISubprogram by rearranging the operands such that containing type, template params, and thrown types come last, and are only allocated when they are non-null (or followed by non-null operands). This patch also eliminates the entirely unused DisplayName operand. This saves up to 4 pointer operands per DISubprogram. (I tried measuring the effect on peak memory usage on an LTO link of an X86 llc, but the results were very noisy). This reapplies r301498 with an attempted workaround for g++. Differential Revision: https://reviews.llvm.org/D32560 llvm-svn: 301501
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud