aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-03-19 18:23:29 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-03-19 18:23:29 +0000
commit0dbc7088dad5b9a60a530d0ebe6008cbc00a5d68 (patch)
tree196de555401fb6dfad3c2ad512d11f245a3936b6 /clang/lib/CodeGen/CodeGenModule.cpp
parent7bf61d3139e4efbd4cc3fb4dfbe754f85fe30726 (diff)
downloadllvm-0dbc7088dad5b9a60a530d0ebe6008cbc00a5d68.zip
llvm-0dbc7088dad5b9a60a530d0ebe6008cbc00a5d68.tar.gz
llvm-0dbc7088dad5b9a60a530d0ebe6008cbc00a5d68.tar.bz2
GlobalDCE: Improve performance for large modules containing comdats.
When we encounter a global with a comdat, rather than iterating over every global in the module to find globals in the same comdat, store the members in a multimap. This effectively lowers the complexity to O(N log N), improving performance significantly for large modules such as might be encountered during LTO. It looks like we used to do something like this until r219191. No functional change. Differential Revision: http://reviews.llvm.org/D8431 llvm-svn: 232743
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions