[PATCH] D15641: [Driver] Pass -O* to the gold plugin via -plugin-opt

James Molloy via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 18 07:59:03 PST 2015


Hi Joerg,

This is about the standard generic optimizer flags. Currently when using
-flto, the backend behaves always as if "-O2" were passed (because this is
the default codegen optimization level inside the gold plugin and it's
never overridden!). So CodeGenOpt::Aggressive is never picked, and that can
significantly change the backend's behaviour.

This isn't about linker optimizations.

James

On Fri, 18 Dec 2015 at 15:50 Joerg Sonnenberger via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> On Fri, Dec 18, 2015 at 01:53:58PM +0000, James Molloy wrote:
> > The gold plugin understands -O0..-O3, but these are not currently being
> passed to it.
>
> Is this about generic optimizer flags in the sense of things that get
> back to LLVM or about linker-style optimizations?
>
> Joerg
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151218/77563ea1/attachment.html>


More information about the cfe-commits mailing list