[patch] Handle calls in GlobalStatus

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Oct 21 22:02:51 PDT 2013


Forgot to mention. This finally fixes pr11866.

The final clang binary goes from 43616296 to 43124224 bytes. The text
section goes from 39135765 to 38754830.

On 22 October 2013 00:29, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> This patch teaches GlobalStatus to analyze a call that uses the global
> value as a callee, not
> as an argument.
>
> With this change internalize call handle the common use of
> linkonce_odr functions. This reduces the number of linkonce_odr
> functions in a LTO build of clang (checked with the emit-llvm gold
> plugin option) from 1730 to 60.
>
> Cheers,
> Rafael




More information about the llvm-commits mailing list