This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Improve unrolled size estimates
- From: Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: Richard Guenther <rguenther at suse dot de>, Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 May 2009 14:59:29 +0200
- Subject: Re: Improve unrolled size estimates
- References: <4A07E979.1030703@gnu.org>
Hi,
> > Is it worth handling this very special case? Note that you are
> > recursively asking for stuff again, so this may become quadratic,
> > especially as simple_iv isn't exactly very cheap.
>
> Why instead not using two bitmaps for known-yes and known-no results of
> constant_after_peeling for SSA_NAMEs? Or alternatively a cache of
> simple_iv results;
scev analysis results are already cached, there is some extra processing
done over them in simple_iv, but the overhead should not be large enough
to require caching (I may be mistaken, though, it might be that the cases
when simple_iv does something nontrivial are more common than I think),
Zdenek