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] Make bitmap_set_bit and bitmap_clear_bit return if the bit changed


Richard Guenther <rguenther@suse.de> writes:

> This lets us simplify some code and apply the do-not-write if nothing
> will change optimization in the general code.
>
> Bootstrap & regtest running, any objections to that change?

Looks good to me.

Ian

> 2008-07-01  Richard Guenther  <rguenther@suse.de>
>
> 	* bitmap.h (bitmap_set_bit): Return bool.
> 	(bitmap_clear_bit): Likewise.
> 	* bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
> 	write to the bitmap if it would.
> 	(bitmap_clear_bit): Likewise.
> 	* tree-ssa-structalias.c (add_implicit_graph_edge): Use
> 	bitmap_set_bit return value.
> 	(add_pred_graph_edge): Likewise.
> 	(add_graph_edge): Likewise.
> 	(do_sd_constraint): Likewise.
> 	(do_ds_constraint): Likewise.


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