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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Jun 14 15:29:36 PDT 2012


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?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120614/e849f109/attachment.obj>


More information about the llvm-commits mailing list