This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa-cfg] Bugfixes
Hello,
> > /* Remove all the instructions in the block. */
> > ! for (i = bsi_last (bb); !bsi_end_p (i); i = bsi_last (bb))
> > {
>
> 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.
Zdenek