This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to use __builtin_expect in fp-bit.c
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 27 Nov 2005 21:53:13 -0800
- Subject: Re: Patch to use __builtin_expect in fp-bit.c
- References: <Pine.LNX.4.64.0511251315290.17658@digraph.polyomino.org.uk>
Joseph S. Myers wrote:
> This patch slightly speeds up fp-bit.c by using __builtin_expect to
> optimize for numbers that are not NaNs or infinities. It yields a
> 0.4% improvement (geometric mean) in EEMBC results on IBM PowerPC 440
> (--with-cpu=440 compiler).
>
> Tested with no regressions with cross-compilers (--with-cpu=440) to
> powerpc-ibm-linux-gnu. Applied to csl-ppc4xx-branch. OK to commit to
> mainline?
OK.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304