C Optimization Tests, 1 May 2004, tree-ssa/3.5/3.4/icc

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sun May 2 15:10:00 GMT 2004


 > Intel ia32/Pentium 4 Northwood 2.8GHz
 > Debian 32-bit Linux 2.6.5
 > GCC options: -O3 -ffast-math -march=pentium4
 > ICC options: -O3 -xN -ipo
 > 
 > 
 > test  tree-ssa  mainline    3.4.1    ICC 8.0
 > ----  --------  --------  --------  --------
 > alma    64.6      64.7      66.0      22.3*
 >  evo    53.5      52.8      52.5      37.7*
 >  fft    28.2      27.2      27.2      30.6
 > huff    21.8      16.1*     18.2      16.4
 >  lin    19.5      19.2*     19.2*     19.4
 > mat1     7.6       7.6       7.6       7.5*
 > mole    31.4      32.8      32.8       5.0*
 > tree    23.9*     24.7      24.7      27.2
 >       --------  --------  --------  --------
 > total  250.6     244.8     246.8     166.1

Scott -- I'm curious how mainline performs on all these tests with the
patch below.  Would you please try it out?  If we can demonstrate an
overall win, I'll submit it for installation.

		Thanks,
		--Kaveh


diff -rup orig/egcc-CVS20040502/gcc/c-cppbuiltin.c egcc-CVS20040502/gcc/c-cppbuiltin.c
--- orig/egcc-CVS20040502/gcc/c-cppbuiltin.c	Thu Apr  1 20:03:20 2004
+++ egcc-CVS20040502/gcc/c-cppbuiltin.c	Sun May  2 10:49:49 2004
@@ -384,6 +384,10 @@ c_cpp_builtins (cpp_reader *pfile)
   if (optimize)
     cpp_define (pfile, "__OPTIMIZE__");
 
+  /* GCC's builtins tend to do better than GLIBC's inlines.  */
+  cpp_define (pfile, "__NO_STRING_INLINES");
+  cpp_define (pfile, "__NO_MATH_INLINES");
+  
   if (fast_math_flags_set_p ())
     cpp_define (pfile, "__FAST_MATH__");
   if (flag_really_no_inline)



More information about the Gcc mailing list