[llvm] r193718 - Produce .weak_def_can_be_hidden for some linkonce_odr values

Nick Kledzik kledzik at apple.com
Thu Oct 31 20:46:32 PDT 2013


On Oct 31, 2013, at 6:28 PM, Rafael EspĂ­ndola wrote:

>> Of these 19049 left, how many are weak?  And do they really need to be weak or is there more logic we could add to make more of them can-be-hidden?
> 
> Not sure how to test this directly, but on a LTO build on linux (which
> uses the same logic) there are only 66 linkonce_odr globals left (list
> attached).

In the message where you gave the count of symbols, you said you had built with xcode 5 tools.  On MacOSX you can run:
   nm -m <binary> | grep "weak external" | wc -l
to get the count of weak external symbols in binary.  (On darwin, weak external symbols are much more expensive the other symbols).

-Nick



More information about the llvm-commits mailing list