This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] cfg_remove_useless_stmts
Hello,
> >> 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.
> I'd *strongly* recommend you examine the .optimized and .rtl dumps if
> you go down this path. The goto removal stuff is still eliminating
> a lot of crap. If you pull it out, I strongly suspect you'll find that
> you're suddenly generating a lot more jumps when you drop down from
> tree to rtl form.
why? With my patch, I do not generate any unnecesary gotos at all in
the first place.
Zdenek