[PATCH] Fix leslie3d performance regression with -flto/-fwhole-program

Richard Guenther rguenther@suse.de
Thu Jun 9 12:37:00 GMT 2011

On Thu, 9 Jun 2011, Tobias Burnus wrote:

> Richard Guenther wrote:
> > leslie3d terminates itself with STOP which translates to a noreturn
> > function.  This causes our edge hot/cold prediction machinery to not
> > apply any predictions based on paths to noreturn functions
> > Bootstrapped and tested on x86_64-unknown-linux-gnu.
> > Ok for trunk?
> OK. Thanks for tracing this down and for the patch.
> I think it is rather obvious.
> (I only wonder a bit why that's a regression.)

It's a "regression" in that, leslie3d runs slower with -fwhole-program
than without.


More information about the Gcc-patches mailing list