This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa-cfg] Bugfixes
- From: Michael Matz <matz at suse dot de>
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: Andreas Jaeger <aj at suse dot de>, <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 18 Aug 2003 23:34:50 +0200 (CEST)
- Subject: Re: [tree-ssa-cfg] Bugfixes
Hi,
On Mon, 18 Aug 2003, Zdenek Dvorak wrote:
> > Is this really correct? You initialize with bsi_last (bb) and then go
> > to it in the next iteration again? This looks to me - not knowing the
> > interface -like an endless loop...
>
> the body of the loop contains bsi_remove, which removes the instruction,
> so this makes the next call to bsi_last to take new last instruction of
> the loop.
Adding this fact as comment would avoid any confusion about the loop,
whose for() expression indeed looks a bit strange at first sight.
Ciao,
Michael.