This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: [darwin] Always turn on FP_SAVE_INLINE at -O3
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Caroline Tice <ctice at apple dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, geoffrey Keating <geoffk at apple dot com>, "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 May 2004 18:46:55 -0400
- Subject: Re: PATCH: [darwin] Always turn on FP_SAVE_INLINE at -O3
- References: <B1CCD8A7-9EE0-11D8-8483-000393BB90B6@apple.com>
On May 5, 2004, at 18:08, Caroline Tice wrote:
The following is a small optimization in the Apple compiler we would
like to put into mainline.
It is Darwin-specific. By always making FP_SAVE_INLINE be true at -O3
or higher we
gain a small performance improvement.
This has been tested on an Apple G4 running apple-darwin. It
bootstraps and passes
DejaGnu. Is this okay to commit to mainline?
No because it is already enabled by default at every level of
optimization.
#define FP_SAVE_INLINE(FIRST_REG) ((FIRST_REG) < 64)
What it is saving to inline when the FIRST_REG is less than 64 which is
every fp
hard register.
Thanks,
Andrew Pinski