[LLVMdev] Best way to clean up empty global_ctors

Rafael Espíndola
2014-05-01T18:12:56Z

On 1 May 2014 14:08, Reid Kleckner <rnk at google.com>
wrote:
> I talked about this with Nick in person months ago, and my understanding is
> that GlobalOpt is also an enabling optimization that needs to run early.
> For example, if we can eliminate an initializer to an internal global with
> no other stores to it, we can propagate the result.
>
> Maybe we should run it twice.

That is probably fine, we just have to make sure compile time doesn't
surfer too much.

Cheers,
Rafael