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 19224


On Mon, 2005-01-03 at 00:17 +0100, Zdenek Dvorak wrote:
> Hello,
> 
> instantiate_parameters_1 may have exponential time complexity, since it may
> get called recursively several times for a single ssa name if it occurs in
> one expression, which in turn may cause it to be called several times for
> other ssa name, etc.  This patch fixes the problem by caching the
> results.
> 
> Bootstrapped & regtested on i686 and ia64.
> 
> Zdenek
> 
> 	PR tree-optimization/19224
> 	* tree-scalar-evolution.c (get_instantiated_value,
> 	set_instantiated_value): New functions.
> 	(instantiate_parameters_1): Cache the results.
> 	(instantiate_parameters, resolve_mixers): Initialize and free
> 	the cache.
This is fine.  Please install if you haven't done so already.

Thanks,
jeff



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