[tree-ssa] [PATCH]: Fix DCE not updating bb->end_tree_p
Diego Novillo
dnovillo@redhat.com
Tue Jul 15 22:27:00 GMT 2003
On Tue, 2003-07-15 at 18:25, Andrew MacLeod wrote:
> > + {
> > + block_stmt_iterator bsi;
> > + bsi = bsi_start (bb);
> > + while (bsi_stmt_ptr (bsi) != stmt_p)
> > + bsi_next_in_bb (&bsi, bb);
> > + bsi_prev (&bsi);
> > + bb->end_tree_p = bsi_container (bsi);
> > + }
> > +
> > stmt->common.ann = NULL;
> >
> > /* The RHS of a MODIFY_EXPR has an annotation for the benefit of
>
> gah. You realize that bsi_prev() currently redoes what you just did all
> over again, so you are currently iterating from bsi_start() twice?
>
Oh, right, I missed that, sorry :/
We really, really, really need to change the way we link statements.
Diego.
More information about the Gcc-patches
mailing list