From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,1177a02b35e507b5 X-Google-Attributes: gid111c93,public From: stevenj@alum.mit.edu (Steven G. Johnson) Subject: Re: gcc/egcs C optimization Date: 1998/11/04 Message-ID: #1/1 X-Deja-AN: 408871687 References: <363F3118.7A28BB64@nist.gov> <71o1qr$mr7@news3.newsguy.com> Organization: Massachusetts Institute of Technology Newsgroups: comp.os.linux.alpha 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)