[llvm-commits] [patch][pr12606] Discard unused linkonce globals in globalopt

Duncan Sands baldrick at free.fr
Thu Jun 14 23:23:09 PDT 2012


Hi Rafael,

> GlobalDCE already removes linkonce globals, but we don't run it at
> -O2. The attached patch factors a bit of logic and changes globalopt
> to also discard unused linkonce globals.
>
> This is not enough to fix pr12606, but should be a step in the right
> direction. Is it OK?

LGTM.

Ciao, Duncan.



More information about the llvm-commits mailing list