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 to fix bit-testing performance regression


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
--


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