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]

Re: [patch] Repost: genattrtab speedup/memory reduction




On Wed, 8 Aug 2001, Richard Henderson wrote:

> On Tue, Aug 07, 2001 at 01:54:16PM +0200, Jan van Male#84776 wrote:
> >         /* Loop until nothing changes for one iteration.  */
> > !       something_changed = 1;
> > !       while (something_changed)
> >   	{
> > ! 	  something_changed = 0;
> > ! 	  for (iv = insn_code_values[i]; iv; iv = iv->next)
> ----
> >         /* Loop until nothing changes for one iteration.  */
> > !       for (iv = insn_code_values[i]; iv; iv = iv->next)
>
> How is it that we're "looping until nothing changes",
> if the while statement has been removed?
Won't the:
while  (GET_CODE (newexpr) == COND))

loop he added do this?
Before it would just skip it if it wasn't a cond, and if *anything*
changed that iteration, it wouldredo a lot. Now, it should just process it
until it's not a cond, and only need to do one iteration.
At least, I think that's the theory.

I.E. redo everything when anything changed, vs redo each thing hat
changed, until it stops changing.
 >
>
> r~
>


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