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

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 18 08:31:24 PST 2015


On Fri, Dec 18, 2015 at 03:59:03PM +0000, James Molloy via cfe-commits wrote:
> 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.

I thought we moved to per-function optimissation attributes?

Joerg


More information about the cfe-commits mailing list