This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] cfg_remove_useless_stmts
- From: law at redhat dot com
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Nov 2003 08:58:57 -0700
- Subject: Re: [tree-ssa] cfg_remove_useless_stmts
- Reply-to: law at redhat dot com
In message <20031113105609.GB18227@atrey.karlin.mff.cuni.cz>, Zdenek Dvorak wri
>> I see... no direct ideas how to deal it more generally then.
>> > > THis can be executed only for COND_EXPRs where both arms get nullified,
>> > > right? This should be cared of by cfg_cleanup unless something is wrong
>> > > with it.
>> > Yes it could; no it is not, since cfg_cleanup is not run after un-ssa.
>> It would be nice to unify these two somehow. I will try to look into it
>> later. Some of the issues should be dealt with if we get rid of GOTOs
>> completely that should not take that long anyway.
>indeed; with the patch to do it I am currently testing all the goto
>removal stuff goes away.
At first glance, I think the only part of this goto removal code that is
still useful is removing unconditional gotos to the next statement. Which
is something one would think the cfg cleanup code ought to be able to do :-)