Re: -O3 and new optimizations in 4.4.0

2009-04-25 Thread Toon Moene
Sebastian Pop wrote: On Fri, Apr 24, 2009 at 08:12, Robert Dewar wrote: What would we have to do to make PPL and CLooG required to build GCC? Why would that be desirable? Seems to me the current situation is clearly preferable. To enable loop transforms in -O3. Note that loop optimization

Re: -O3 and new optimizations in 4.4.0

2009-04-24 Thread Joe Buck
On Fri, Apr 24, 2009 at 01:34:37PM -0700, Andi Kleen wrote: > Robert Dewar writes: > > > Sebastian Pop wrote: > >> On Fri, Apr 24, 2009 at 08:12, Robert Dewar wrote: > What would we have to do to make PPL and CLooG required to build GCC? > >>> Why would that be desirable? Seems to me the cu

Re: -O3 and new optimizations in 4.4.0

2009-04-24 Thread Andi Kleen
Robert Dewar writes: > Sebastian Pop wrote: >> On Fri, Apr 24, 2009 at 08:12, Robert Dewar wrote: What would we have to do to make PPL and CLooG required to build GCC? >>> Why would that be desirable? Seems to me the current situation is >>> clearly preferable. >> To enable loop transforms

Re: -O3 and new optimizations in 4.4.0

2009-04-24 Thread Robert Dewar
Sebastian Pop wrote: On Fri, Apr 24, 2009 at 08:12, Robert Dewar wrote: What would we have to do to make PPL and CLooG required to build GCC? Why would that be desirable? Seems to me the current situation is clearly preferable. To enable loop transforms in -O3. To me, you would have to sho

Re: -O3 and new optimizations in 4.4.0

2009-04-24 Thread Jack Howarth
On Fri, Apr 24, 2009 at 08:30:37AM -0500, Sebastian Pop wrote: > On Fri, Apr 24, 2...@08:12, Robert Dewar wrote: > >> What would we have to do to make PPL and CLooG required to build GCC? > > > > Why would that be desirable? Seems to me the current situation is > > clearly preferable. > > To enab

Re: -O3 and new optimizations in 4.4.0

2009-04-24 Thread Sebastian Pop
On Fri, Apr 24, 2009 at 08:12, Robert Dewar wrote: >> What would we have to do to make PPL and CLooG required to build GCC? > > Why would that be desirable? Seems to me the current situation is > clearly preferable. To enable loop transforms in -O3. Sebastian Pop -- AMD - GNU Tools

Re: -O3 and new optimizations in 4.4.0

2009-04-24 Thread Robert Dewar
Sebastian Pop wrote: Hi, On Thu, Apr 23, 2009 at 10:57, Joseph S. Myers wrote: Because the behavior of -O3 must not depend on whether optional libraries are linked into GCC, and we did not decide to make PPL and CLooG required to build GCC, so -O3 cannot enable any optimizations using optional

Re: -O3 and new optimizations in 4.4.0

2009-04-24 Thread Sebastian Pop
Hi, On Thu, Apr 23, 2009 at 10:57, Joseph S. Myers wrote: > Because the behavior of -O3 must not depend on whether optional libraries > are linked into GCC, and we did not decide to make PPL and CLooG required > to build GCC, so -O3 cannot enable any optimizations using optional > libraries. > W

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread Andrew Pinski
On Thu, Apr 23, 2009 at 12:11 PM, Kate Minola wrote: > Ok, I am confused.  You imply that PPL and CLooG are NOT required to > build GCC, yet > >     http://gcc.gnu.org/install/prerequisites.html > > lists them as prerequisites to a build. > > Who is correct? Both, the website says: Necessary to b

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread Kate Minola
On Thu, 23 Apr 2009, Joseph S. Myers wrote: > Because the behavior of -O3 must not depend on whether optional libraries > are linked into GCC, and we did not decide to make PPL and CLooG required > to build GCC, so -O3 cannot enable any optimizations using optional > libraries. Ok, I am confused.

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread Joseph S. Myers
On Thu, 23 Apr 2009, David Ronis wrote: > Thanks for the reply. On the other hand, it seems that PPL and Cloog > are auto-detected by configure; shouldn't that be enough to dynamically > modify what -O3 does (or perhaps enable -O4)? On a related point, > having used my old build script to buil

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread David Ronis
Thanks for the reply. On the other hand, it seems that PPL and Cloog are auto-detected by configure; shouldn't that be enough to dynamically modify what -O3 does (or perhaps enable -O4)? On a related point, having used my old build script to build gcc I, of course, didn't read the prerequisites

Re: -O3 and new optimizations in 4.4.0

2009-04-23 Thread Joseph S. Myers
On Thu, 23 Apr 2009, David Ronis wrote: > >From the info pages it seems that the new optimizations, > -floop-interchange, -floop-strip-mine, and -floop-block, are NOT turned > on when -O3 is specified. Is this correct and if so, why aren't they? Because the behavior of -O3 must not depend on whe

-O3 and new optimizations in 4.4.0

2009-04-23 Thread David Ronis
>From the info pages it seems that the new optimizations, -floop-interchange, -floop-strip-mine, and -floop-block, are NOT turned on when -O3 is specified. Is this correct and if so, why aren't they? David