summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-10-21 23:20:13 +0000
committerRui Ueyama <ruiu@google.com>2017-10-21 23:20:13 +0000
commit95bf50987307333b10118907f5e781ab27b4f70c (patch)
tree9aa8a5d449870825889afb23474d1a7448d3e641 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent5b4f81ec14cd6d656514806f2a6b3b5e46d70103 (diff)
downloadbcm5719-llvm-95bf50987307333b10118907f5e781ab27b4f70c.tar.gz
bcm5719-llvm-95bf50987307333b10118907f5e781ab27b4f70c.zip
Assume that mergeable input sections are smaller than 4 GiB.
By assuming that mergeable input sections are smaller than 4 GiB, lld's memory usage when linking clang with debug info drops from 2.788 GiB to 2.019 GiB (measured by valgrind, and that does not include memory space for mmap'ed files). I think that's a reasonable assumption given such a large RAM savings, so this patch. According to valgrind, gold needs 3.54 GiB of RAM to do the same thing. NB: This patch does not introduce a limitation on the size of output sections. You can still create sections larger than 4 GiB. llvm-svn: 316280
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud