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


On Thu, 2004-12-02 at 10:21 -0500, Kazu Hirata wrote:
> Hi,
> 
> Attached is part 21 of my O(1) PHI argument look-up patch.
> 
> phi_arg_from_edge never returns -1.  The return value of -1 used to
> mean that a PHI argument is missing for a given edge.  These days, a
> "missing PHI argument" is represented by putting NULL_TREE in the
> corresponding PHI argument slot, so we have to use
> 
>   gcc_assert (PHI_ARG_DEF (phi, e) != NULL_TREE);
> 
> The patch updates an instance of gcc_assert.  Also, the patch moves
> the use phi_arg_from_edge out of the loop as its result is loop
> invariant.
> 
> Tested on i686-pc-linux-gnu.  OK to apply?
> 
> Kazu Hirata
> 
> 2004-12-02  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	* tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
> 	is not null.
Approved.
jeff



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