This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: food for optimizer developers
On Sat, Aug 14, 2010 at 12:08:21AM +0200, Tobias Burnus wrote:
>
> In terms of options, I think -funroll-loops should also be used as it
> usually improves performance (it is not enabled by any -O... option).
>
I wonder if gfortran should check if -O and -O2 is given,
and then add -funroll-loops. In my tests, I've rarely
seen a performance issue with -O and -O2. I have seen problems
in the past with -O3 and -funroll-loops.
--
Steve