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 for PR tree-optimization/32941, bootstrap comparision failure


Steve Ellcey <sje@cup.hp.com> writes:

> 2007-08-13  Steve Ellcey  <sje@cup.hp.com>
> 
> 	PR tree-optimization/32941
> 	* tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
> 	(goto_queue_cmp): Remove.
> 	(find_goto_replacement): Change search method.
> 	(maybe_record_in_goto_queue): Add assert.
> 	(lower_try_finally): Remove qsort call, add pointer_map_destroy call.

This is OK if it passes testing.

> +#define LARGE_GOTO_QUEUE 2

I think your proposed value of 50 is too high.  This is an N squared
algorithm.  I would go for something more like 20.

Ian


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