[PATCH] Rework powerpc reciprocal estimation instruction generation

David Edelsohn dje.gcc@gmail.com
Wed Jun 2 22:08:00 GMT 2010


On Tue, Jun 1, 2010 at 7:21 PM, Michael Meissner
<meissner@linux.vnet.ibm.com> wrote:
> This patch improves the generation of reciprocal approximation instructions in
> the PowerPC.  The following optimizations are done:
>
>        float / float           -> replace FDIVS with FRES + fixup
>        1.0f / sqrtf(float)     -> replace FSQRTS/FDIVS with FRSQRTES + fixup
>        double / double         -> replace FDIV with FRE + fixup
>        1.0 / sqrt(double)      -> replace FSQRT/FDIV with FRSQRTE + fixup

> Are these patches ok to install?

Okay.

Thanks, David



More information about the Gcc-patches mailing list