[llvm-dev] ThinLTO and linkonce_odr + unnamed_addr

Rafael Avila de Espindola via llvm-dev llvm-dev at lists.llvm.org
Thu Feb 15 17:06:12 PST 2018


Steven Wu <stevenwu at apple.com> writes:

> I explain that in the same thread to Peter.
>
> I talked to Nick yesterday and It turns out to be an implementation choice. The overhead to deduplicate all the non-external symbols are too high so ld64 picks a subset that can potentially be beneficial, which are the "auto hide" symbols. So this is not a correctness issue but we might need a different heuristic for performance. 

The algorithm Rui implemented in lld might be something to consider. It
handle cycles and is very fast.

Cheers,
Rafael


More information about the llvm-dev mailing list