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] O(1) PHI argument look-up - Part 4/n


On Sun, 2004-11-21 at 12:46 -0500, Kazu Hirata wrote:
> Hi,
> 
> Attached is a patch to part 4 of my O(1) PHI argument look-up patch.
> 
> In order to sync an edge vector and a PHI array, we need to catch
> events like growing and shrinking of the edge vector.
> 
> This patch adds two targets hooks.  See the hunks from cfghooks.h for
> their descriptions.  To make the patch readable, I didn't put the
> applications of these hooks in this patch.
> 
> Tested on i686-pc-linux-gnu.  OK to apply?
> 
> Kazu Hirata
> 
> 2004-11-21  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	* cfg.c (unchecked_make_edge): Call execute_on_growing_pred
> 	after making an edge.
> 	(remove_edge): Call execute_on_shrinking_pred before removing
> 	an edge.
> 	(redirect_edge_succ): Call execute_on_growing_pred and
> 	execute_on_shrinking_pred.
> 	* cfghooks.c (execute_on_growing_pred): New.
> 	(execute_on_shrinking_pred): Likewise.
> 	* cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
> 	execute_on_shrinking_pred.
> 	Add prototypes for execute_on_growing_pred and
> 	execute_on_shrinking_pred.
> 	* cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
> 	execute_on_growing_pred and execute_on_shrinking_pred.
> 	(cfg_layout_rtl_cfg_hook): Likewise.
> 	* tree-cfg.c (tree_cfg_hooks): Likewise.
This is fine.  Please go ahead and install.
jeff



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