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] Fix tree-opt/21732 -ftree-dump-all-details going into an infinite loop


On Fri, May 27, 2005 at 05:08:36PM -0400, Andrew Pinski wrote:

> 	* tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
> 	SSA_NAME twice and cause the loop to become finite.  Also test for 
> 	var
> 	in the loop.
> 
OK with two minor changes below.

> +  visited = sbitmap_alloc (num_ssa_names);
> +  
SET_BIT (visited, SSA_NAME_VERSION (var));

> +         && copy_of[SSA_NAME_VERSION (val)].value != var
>           && copy_of[SSA_NAME_VERSION (val)].value != val)

And we now don't need either of these tests.


Diego.


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