This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix leslie3d performance regression with -flto/-fwhole-program
- From: Richard Guenther <rguenther at suse dot de>
- To: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Thu, 9 Jun 2011 14:12:17 +0200 (CEST)
- Subject: Re: [PATCH] Fix leslie3d performance regression with -flto/-fwhole-program
- References: <20110609120603.GA23637@physik.fu-berlin.de>
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.
Richard.