[llvm-commits] [pr11677][patch] Eagerly materialize functions whose BBs are used in global variables inits

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Fri Dec 30 22:09:40 PST 2011


I think this is the simplest non hack fix for PR11677.

The problem is that when a user sees a global variable, it has no way of
knowing if that variable is "complete" or if materializing a function
will change its initialization.

To prevent this from happening, this patch materializes all functions
that could have an impact.

I intend to add a unit test before committing, but it is a bit
cumbersome as I couldn't find any infrastructure for using .ll or .bc
files in the unit tests.

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


More information about the llvm-commits mailing list