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: [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.


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