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 2/n


On Thu, 2004-11-18 at 12:58 -0500, Kazu Hirata wrote:

> #define PHI_ARG_EDGE(NODE, I) (EDGE_PRED (bb_for_stmt ((NODE)), (I)))
> 
Probably not worth it, if we are working with a PHI node, we typically
always have its basic block at hand, so calling bb_for_stmt() again is
just a waste of time.  But, we'll see.


> 2004-11-18  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	* tree-cfg.c (reinstall_phi_args): New.
> 	(tree_split_edge): Use it after redirecting an edge.  Don't
> 	modify PHI_ARG_EDGE.
> 
OK.


Diego.


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