This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Alternate expansion of signed remainder by power of two


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]