[LTO] Discard names for values that are not global by default.
authorDavide Italiano <davide@freebsd.org>
Thu, 21 Apr 2016 17:46:38 +0000 (17:46 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 21 Apr 2016 17:46:38 +0000 (17:46 +0000)
commit5abcb3cc5be4d3618d3156a662453b27fd590b2b
tree5987b07e3e452bac5df8843d30014cadf3a540d8
parent3ac071842333b4e613e47925558a71251eac12af
[LTO] Discard names for values that are not global by default.

Rafael reported on the mailing list that this reduces peak memory
usage while linking llvm-as by 15%. It makes sense to make it
the default, and introduce an inverse knob -lto-no-discard-value-names
for those who want to restore the old behavior.

llvm-svn: 267020
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/test/ELF/lto/discard-value-names.ll
lld/test/ELF/lto/type-merge2.ll