This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
> Performance on the "alma" test is predicated on the speed of the > sin(), cos(), and sqrt() functions. I've tried -D__NO_INLINE__, > -fno-inline, and other suggestions, without finding anything that > improved GCC's performance on this benchmark.
Strange. Using last night's mainline on i686-pc-linux-gnu, when I supply either -D__NO_INLINE__ or -D__NO_MATH_INLINES I get a dramatic 30% speedup for alma. Still not as fast as ICC, but better than it was.
-O3 -ffast-math -march=pentium4 -D__NO_MATH_INLINES -O3 -ffast-math -march=pentium4 -D__NO_MATH_INLINES
We (the gcc and glibc communities) need to stop writing the same optimizations in two places and the compiler is where they belong because ultimately it can do a better job.
-- Scott Robert Ladd Coyote Gulch Productions (http://www.coyotegulch.com) Software Invention for High-Performance Computing
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |