aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-06-25 23:46:41 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-06-25 23:46:41 +0000
commit4fb1f9cda636c581753bb186d099cecc2954e401 (patch)
treee6f77fc15a0e27d865c040a20d1d8d8b4085fc31 /clang/lib/CodeGen/CodeGenModule.cpp
parentded14f8a334ba95fcefb2ad6214dadfe2c9e47e5 (diff)
downloadllvm-4fb1f9cda636c581753bb186d099cecc2954e401.zip
llvm-4fb1f9cda636c581753bb186d099cecc2954e401.tar.gz
llvm-4fb1f9cda636c581753bb186d099cecc2954e401.tar.bz2
AsmPrinter: Convert DIE::Values to a linked list
Change `DIE::Values` to a singly linked list, where each node is allocated on a `BumpPtrAllocator`. In order to support `push_back()`, the list is circular, and points at the tail element instead of the head. I abstracted the core list logic out to `IntrusiveBackList` so that it can be reused for `DIE::Children`, which also cares about `push_back()`. This drops llc memory usage from 799 MB down to 735 MB, about 8%. (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 240733
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions