[patch] O(1) PHI argument look-up - Part 18/n

Jeffrey A Law law@redhat.com
Mon Nov 29 18:01:00 GMT 2004


On Sun, 2004-11-28 at 21:48 -0500, Kazu Hirata wrote:
> Hi,
> 
> Attached is part 18 of my O(1) PHI argument look-up patch.
> 
> At several places where PHI_ARG_EDGE (phi, x) is used, the value of
> bb_for_stmt (phi) is known, so we can use EDGE_PRED instead of
> PHI_ARG_EDGE.  Doing so will save one PHI_BB because PHI_ARG_EDGE is
> expanded like so
> 
>   EDGE_PRED (PHI_BB ((NODE)), (I))
> 
> I didn't go for replacing all PHI_ARG_EDGE with EDGE_PRED because the
> use of bb_for_stmt looks somewhat ugly.
> 
> Tested on i686-pc-linux-gnu.  OK to apply?
> 
> Kazu Hirata
> 
> 2004-11-29  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	* tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
> 	EDGE_PRED instead of PHI_ARG_EDGE.
> 	* tree-ssa-live.c: Likewise.
> 	* tree-ssa-loop-manip.c: Likewise.
> 	* tree-ssa.c: Likewise.
Approved.
jeff




More information about the Gcc-patches mailing list