From: stevenj@alum.mit.edu (Steven G. Johnson)
Subject: Re: gcc/egcs C optimization
Date: 1998/11/04 [thread overview]
Message-ID: <stevenj-0411981338010001@wetelectron.mit.edu> (raw)
In-Reply-To: 71o1qr$mr7@news3.newsguy.com
lindahl@pbm.com (Greg Lindahl) wrote:
> I believe that FFTW would be an example where a 450 mhz PII can be
> faster than a 533 mhz Alpha. FFTW generates FFT routines with huge
> basic blocks of adds and multiplies, and the instruction scheduler
> with egcs is unable to effectively schedule them. If anyone wants to
> hack on the the haifa scheduler, that would be the place to start.
Regarding FFTW and haifa, we actually had to turn off one of the scheduler
passes (-fno-schedule-insns -fschedule-insns2) in order to get good
performance on PowerPC/MIPS/UltraSPARC (haven't tried Alpha with egcs/gcc
yet)! With these options, egcs was able to beat the SGI and Sun compilers
on MIPS and UltraSPARC. For really long blocks, it seems that the default
egcs scheduler isn't very good.
Someone else on this thread apparently made the same observation, as they
also suggested using these options with egcs. On the other hand, using
these options does not uniformly produce benefits (e.g. I tried using them
with the PhiPAC self-optimizing BLAS routines on a PowerPC, and they
slowed things down).
I'd be interested in seeing FFT benchmark results from egcs-1.1 on an
Alpha if anyone cares to send some to me. (We have a big FFT benchmark
program at http://theory.lcs.it.edu/~benchfft that you can download and
run.) I'll post any results on our web page. (You will need to grab
FFTW, too, at http://theory.lcs.mit.edu/~fftw.) Note that we have already
posted results from the DEC compilers on Alpha.
Cordially,
Steven G. Johnson
(FFTW co-author)
next prev parent reply other threads:[~1998-11-04 5:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-31 5:00 gcc/egcs C optimization Berk Sensoy
1998-11-02 5:00 ` Conrad Sanderson
1998-11-02 5:00 ` Murx
1998-11-03 5:00 ` Adam C. Powell, IV
1998-11-03 5:00 ` Greg Lindahl
1998-11-04 5:00 ` Steven G. Johnson [this message]
1998-11-04 5:00 ` C.Simmendinger
1998-11-04 5:00 ` Greg Lindahl
1998-11-05 5:00 ` C.Simmendinger
1998-11-05 5:00 ` Greg Lindahl
1998-11-05 5:00 ` C.Simmendinger
1998-11-04 5:00 ` Craig Burley
1998-11-05 5:00 ` Toon Moene
1998-11-06 5:00 ` C.Simmendinger
1998-11-06 5:00 ` C.Simmendinger
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox