Patch to fix bit-testing performance regression

Roger Sayle roger@eyesopen.com
Fri Mar 19 17:39:00 GMT 2004


On Fri, 19 Mar 2004, Richard Sandiford wrote:
>
> 	* Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
> 	(GTFILES): Add $(srcdir)/dojump.h.
> 	(gt-dojump.h): New dependency.
> 	* dojump.c (and_reg, and_test, shift_test): New static variables.
> 	(prefer_and_bit_test): New function.
> 	(do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
>

This is Ok for mainline.

Thanks,

Roger
--



More information about the Gcc-patches mailing list