[LLVMdev] Best way to clean up empty global_ctors

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu May 1 11:12:56 PDT 2014


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



More information about the llvm-dev mailing list