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] [PATCH]: Fix DCE not updating bb->end_tree_p


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.


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