This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Alternate expansion of signed remainder by power of two
- From: Falk Hueffner <hueffner at informatik dot uni-tuebingen dot de>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>
- Date: Tue, 29 Jun 2004 19:01:37 +0200
- Subject: Re: [PATCH] Alternate expansion of signed remainder by power of two
- References: <Pine.LNX.4.44.0406290935340.5877-100000@www.eyesopen.com>
Roger Sayle <roger@eyesopen.com> writes:
> The following patch should address the performance regression
> observed by Falk on the alpha. I've enhanced the new
> expand_smod_pow2 function to use the target's rtx_cost function to
> determine which of two implementations to use.
>
> Falk, could you test this patch on your alpha? alphaev67-dec-osf5.1
> isn't bootstrapping for me at the moment.
Works fine, I get the same code as with old gcc for small operands,
and slightly better code for large ones (not usable as immediate).
--
Falk