This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/6007: cfg cleanup tremendous performance hog with -O1
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: rth at redhat dot com (Richard Henderson)
- Cc: lucier at math dot purdue dot edu (Brad Lucier), jh at suse dot cz (Jan Hubicka), dje at watson dot ibm dot com (David Edelsohn), gcc at gcc dot gnu dot org, mark at codesourcery dot com, feeley at iro dot umontreal dot ca
- Date: Sat, 6 Apr 2002 01:02:37 -0500 (EST)
- Subject: Re: optimization/6007: cfg cleanup tremendous performance hog with -O1
>
> On Thu, Apr 04, 2002 at 09:56:49AM -0500, Brad Lucier wrote:
> > I've looked at cfgcleanup.c and don't really know how to proceed. Can
> > someone suggest a reasonable way to fix this?
>
> How about stealing an idea from gcse_main.
...
Thank you.
I've tested this on sparcv9-sun-solaris2.8 (sans libgcj and ada) and
there were no regressions. This also fixes my particular problem with
long execution times. I suggest that it be added to the 3.1 branch because
it fixes the problem, but I think a more long-term solution (like ignoring
branches from computed gotos) be applied to the 3.2 trunk later.
Brad