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] tree-outof-ssa.c: VECify and edge_leader and stmt_list.


On Wed, 2005-05-04 at 11:21, Kazu Hirata wrote:
> Hi,
> 
> Attached is a patch to VECify edge_leader and stmt_list.
> 
> Andrew, this patch is pretty big for what it's really doing.  This is
> partly because I am using VEC_iterate.  Consider
> 
> -  for (x = 0 ; x < VARRAY_ACTIVE_SIZE (edge_leader); x++)
> +  for (x = 0; VEC_iterate (edge, edge_leader, x, leader); x++)
> 
> Since VEC_iterate gives us the Xth element in LEADER, LEADER must be
> declared outside the loop.  Since we have several loops that iterate
> over edge_leader, I declared LEADER at the function scope and used it
> everywhere.  This is why you see replacements of LEADER_EDGE with
> LEADER in some places.
> 
> Tested on i686-pc-linux-gnu.  OK to apply?


Looks fine, check it in.

Andrew


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