cfg_cleanup speedup

Richard Henderson rth@redhat.com
Fri Oct 19 10:40:00 GMT 2001


On Wed, Oct 17, 2001 at 11:39:06PM +0200, Jan Hubicka wrote:
> 	* toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
> 	to avoid update_life_info call.
> 	* basic-block.h (CLEANUP_UPATE_LIFE): Define.
> 	* cfgcleanup.c (bb_flags): New enum.
> 	(BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
> 	(notice_new_block, update_forwarder_flag): New functions.
> 	(try_simplify_condjump): Use FORWARDER_BLOCK_P.
> 	(try_forward_edges): Likewise; update flags.
> 	(merge_blocks): Likewise.
> 	(outgoing_edges_match): Likewise.
> 	(try_crossjump_to_edge): Likewise.
> 	(try_optimize_cfg): Likewise; initialize and clear the flags;
> 	recompute life info if needed.
> 	(cleanup_cfg): No need to clear aux pointers.

Ok.


r~



More information about the Gcc-patches mailing list