ELF: ICF: Include contents of referenced sections in initial partitioning hash. NFCI.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 26 Nov 2018 21:15:47 +0000 (21:15 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 26 Nov 2018 21:15:47 +0000 (21:15 +0000)
commitc81be651662e09a736d1d210deda25eacd4673df
tree405629c238f50bed6cce0b515983616aef570914
parentb955bf382cf3ad82c4e8849e898bdfba40ab8aab
ELF: ICF: Include contents of referenced sections in initial partitioning hash. NFCI.

On my machine this reduced median link time of lld-speed-test/chrome
from 2.68s to 2.41s. It also reduces link time of Chrome for Android
with a prototype compiler change that causes the compiler to create
large numbers of identical (modulo relocations) sections from >15
minutes to a few seconds.

Differential Revision: https://reviews.llvm.org/D54773

llvm-svn: 347594
lld/ELF/ICF.cpp