<div dir="ltr">Hi Joerg,<div><br></div><div>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.</div><div><br></div><div>This isn't about linker optimizations.</div><div><br></div><div>James</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 18 Dec 2015 at 15:50 Joerg Sonnenberger via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Dec 18, 2015 at 01:53:58PM +0000, James Molloy wrote:<br>
> The gold plugin understands -O0..-O3, but these are not currently being passed to it.<br>
<br>
Is this about generic optimizer flags in the sense of things that get<br>
back to LLVM or about linker-style optimizations?<br>
<br>
Joerg<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div>