summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-04-26 23:44:54 +0000
committerAdrian Prantl <aprantl@apple.com>2017-04-26 23:44:54 +0000
commit82c98fcdbf62127584ea288c6f3cf8ffad5f65be (patch)
tree232cbe9888eadc16806d8bc42b51582e654b23ac /clang/lib/Frontend/CompilerInvocation.cpp
parentb0fe70451e23a2b5ef19399d286c6a1cdaf5e686 (diff)
downloadbcm5719-llvm-82c98fcdbf62127584ea288c6f3cf8ffad5f65be.tar.gz
bcm5719-llvm-82c98fcdbf62127584ea288c6f3cf8ffad5f65be.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). llvm-svn: 301498
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud