Re: Better performance on older version of GCC

2010-08-27 Thread Xinliang David Li
Right -- I missed Richard's previous email regarding the options. Thanks, David On Fri, Aug 27, 2010 at 5:21 PM, Andrew Pinski wrote: > On Fri, Aug 27, 2010 at 5:12 PM, Xinliang David Li wrote: >> Briefly looked at it -- the trunk gcc also regresses a lot compared to >> the binary you attached

Re: Better performance on older version of GCC

2010-08-27 Thread Andrew Pinski
On Fri, Aug 27, 2010 at 5:12 PM, Xinliang David Li wrote: > Briefly looked at it -- the trunk gcc also regresses a lot compared to > the binary you attached. (To match your binary, also added > -mfpmath=387 -m32 options) > > Two problems: > > 1) more register spills in the trunk version -- the old

Re: Better performance on older version of GCC

2010-08-27 Thread Xinliang David Li
Briefly looked at it -- the trunk gcc also regresses a lot compared to the binary you attached. (To match your binary, also added -mfpmath=387 -m32 options) Two problems: 1) more register spills in the trunk version -- the old compiler seems more effective in using fp stack registers; 2) the comp

Re: Better performance on older version of GCC

2010-08-27 Thread Corey Kasten
On Fri, 2010-08-27 at 17:09 +0200, Richard Guenther wrote: > On Fri, Aug 27, 2010 at 5:02 PM, Corey Kasten > wrote: > > On Fri, 2010-08-27 at 06:50 -0700, Nathan Froyd wrote: > >> On Fri, Aug 27, 2010 at 09:44:25AM -0400, Corey Kasten wrote: > >> > I find that the executable compiled on system A r

Re: Better performance on older version of GCC

2010-08-27 Thread Richard Guenther
On Fri, Aug 27, 2010 at 5:02 PM, Corey Kasten wrote: > On Fri, 2010-08-27 at 06:50 -0700, Nathan Froyd wrote: >> On Fri, Aug 27, 2010 at 09:44:25AM -0400, Corey Kasten wrote: >> > I find that the executable compiled on system A runs faster (on both >> > systems) than the executable compiled on sys

Re: Better performance on older version of GCC

2010-08-27 Thread Corey Kasten
On Fri, 2010-08-27 at 06:50 -0700, Nathan Froyd wrote: > On Fri, Aug 27, 2010 at 09:44:25AM -0400, Corey Kasten wrote: > > I find that the executable compiled on system A runs faster (on both > > systems) than the executable compiled on system B (on both system), by a > > factor about approximately

Re: Better performance on older version of GCC

2010-08-27 Thread Nathan Froyd
On Fri, Aug 27, 2010 at 09:44:25AM -0400, Corey Kasten wrote: > I find that the executable compiled on system A runs faster (on both > systems) than the executable compiled on system B (on both system), by a > factor about approximately 4 times. I have attempted to play with the > GCC optimizer fla

Re: Better performance on older version of GCC

2010-08-27 Thread H.J. Lu
On Fri, Aug 27, 2010 at 6:44 AM, Corey Kasten wrote: > Hello all, > > I have two computers with two different versions of GCC. Otherwise the > two systems have identical hardware. I have a processor and memory > intensive benchmark program which I compile on both systems and I cannot > understand