[patch] Produce .weak_def_can_be_hidden for some linkonce_odr values

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Oct 29 06:29:37 PDT 2013


On 29 October 2013 00:33, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
>>> How much do we lose
>>> if you don't do this recomparison, is that tolerable? I realize that getting
>>> a second run of globalopt at the end is going to be time consuming to prove
>>> worthwhile, but I really think it's the right way to go.
>>
>> With a notaddrtaken attribute the run of GlobalOpt we have would be
>> sufficient. This check is at the very end of the compilation.  I will
>> benchmark a build without the GlobalStatus::analyzeGlobal and report
>> as soon as the bootstrap finishes.
>>
>
> The result is far more modest:
>
> $ nm build-patch2/bin/clang | grep ' T ' | wc
>
>    20850 62550 1763368

The more restricted patch is attached. We can start with that if you want.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 3654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131029/46e90ab2/attachment.bin>


More information about the llvm-commits mailing list