This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Block merging (updated)
Hello,
> On Tue, Jan 13, 2004 at 12:30:27PM +0100, Zdenek Dvorak wrote:
> > + /* Merge the chains. */
> > + last = tsi_last (a->stmt_list);
> > + tsi_link_after (&last, b->stmt_list, TSI_NEW_STMT);
> > + b->stmt_list = alloc_stmt_list ();
>
> Why not "b->stmt_list = NULL"? We're about to remove the thing...
because we are going to call remove_bb to do it, which will try
to remove the statements, which would crash if it was NULL.
Zdenek