This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] empty_stmt_nodes, deleted statements, iterators, andgsi_step_bb
- From: Andrew MacLeod <amacleod at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: Diego Novillo <dnovillo at redhat dot com>,gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 29 Nov 2002 13:09:51 -0500
- Subject: Re: [tree-ssa] empty_stmt_nodes, deleted statements, iterators, andgsi_step_bb
- References: <0BDC4CDF-03C5-11D7-BFC8-000393575BCC@dberlin.org>
On Fri, 2002-11-29 at 13:04, Daniel Berlin wrote:
>
> On Friday, November 29, 2002, at 12:50 PM, Diego Novillo wrote:
>
> > On Fri, 29 Nov 2002, Andrew Macleod wrote:
> >
> >> So why does the builder do this? why doesn't it do something such as
> >> link a compound statement into the tree, hang an empty_stmt node off
> >> it,
> >> and then point to that?
> >>
> > Because the CFG builder is not particularly bright. Your
> > suggestion sounds good to me. Care to implement it? :)
>
> You have to hang two, no?
> :)
>
I originally wrote that we'd need 2, but then figured I only needed one
which could be both the first and last statement in the block. So I
reworded it :-) There must be other blocks which only have one
statement. As long as there is *something* in the tree we're pointing
to.
Andrew