[llvm-commits] [patch][pr8927] Don't merge two constants if both addresses are significant

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Sat Jan 15 19:37:37 PST 2011


This patch fixes the original testcase in PR8927. It also causes a clang 
binary built with a patched clang to increase in size by 0.21%.

We can probably get some of the size back by writing a pass that detects 
that a global never has its pointer compared and adds unnamed_addr to 
it. It is also possible that there are some other cases clang could add 
unnamed_addr to.

Is the patch OK?

Cheers,
Rafael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PR8927.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110115/b5f90ee6/attachment.ksh>


More information about the llvm-commits mailing list