RFA: Patch to constrain maximal number of tries for incomplete dfa descriptions.

Richard Henderson rth@redhat.com
Fri Jun 6 00:23:00 GMT 2003


On Thu, Jun 05, 2003 at 03:05:58PM -0400, Vladimir Makarov wrote:
> +       if (targetm.sched.first_cycle_multipass_dfa_lookahead
> + 	  && (*targetm.sched.first_cycle_multipass_dfa_lookahead) () > 0)
> + 	{
> + 	  max_lookahead_tries = 100;
> + 	  for (i = 0; i < issue_rate; i++)
> + 	    max_lookahead_tries
> + 	      *= (*targetm.sched.first_cycle_multipass_dfa_lookahead) ();

I realize this is initialization and all, but perhaps
caching the result of the function call?

Also, this seems like something appropriate for a --param,
do you agree?


r~



More information about the Gcc-patches mailing list