This is an archive of the discontinued LLVM Phabricator instance.

ELF: ICF: Include contents of referenced sections in initial partitioning hash. NFCI.
ClosedPublic

Authored by pcc on Nov 20 2018, 1:37 PM.

Details

Summary

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.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

pcc created this revision.Nov 20 2018, 1:37 PM
grimar accepted this revision.Nov 21 2018, 1:48 AM

This LGTM. Please wait for Rui's opinion too.

This revision is now accepted and ready to land.Nov 21 2018, 1:48 AM
dmajor added a subscriber: dmajor.Nov 21 2018, 10:32 AM
ruiu accepted this revision.Nov 26 2018, 12:56 PM

LGTM. Thanks!

This revision was automatically updated to reflect the committed changes.