aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-12-05 19:13:31 +0000
committerRui Ueyama <ruiu@google.com>2018-12-05 19:13:31 +0000
commitc9c34bdc1af8bf0c2678aacad26b1552e0d79eee (patch)
tree17852b99996a805c0c37063963b51bb894afbbd4 /clang/lib/CodeGen/CodeGenFunction.cpp
parentc3463f6ba8f5b0baacd46a18a7c991e3a3d65403 (diff)
downloadllvm-c9c34bdc1af8bf0c2678aacad26b1552e0d79eee.zip
llvm-c9c34bdc1af8bf0c2678aacad26b1552e0d79eee.tar.gz
llvm-c9c34bdc1af8bf0c2678aacad26b1552e0d79eee.tar.bz2
Do not use a hash table to uniquify mergeable strings.
Previously, we have a hash table containing strings and their offsets to manage mergeable strings. Technically we can live without that, because we can do binary search on a vector of mergeable strings to find a mergeable strings. We did have both the hash table and the binary search because we thought that that is faster. We recently observed that lld tend to consume more memory than gold when building an output with debug info. A few percent of memory is consumed by the hash table. So, we needed to reevaluate whether or not having the extra hash table is a good CPU/memory tradeoff. I run a few benchmarks with and without the hash table. I got a mixed result for the benchmark. We observed a regression for some programs by removing the hash table (that's what we expected), but we also observed that performance imrpovements for some programs. This is perhaps due to reduced memory usage. Differential Revision: https://reviews.llvm.org/D55234 llvm-svn: 348401
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions