Skip to content
Snippets Groups Projects

Add -funroll-loops as a standard GCC optimization

Merged Peter W. Draper requested to merge compiler-optimizations into master
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -160,6 +160,9 @@ if test "$ac_test_CFLAGS" != "set"; then
@@ -160,6 +160,9 @@ if test "$ac_test_CFLAGS" != "set"; then
# note that we enable "unsafe" fp optimization with other compilers, too
# note that we enable "unsafe" fp optimization with other compilers, too
AX_CHECK_COMPILE_FLAG(-ffast-math, CFLAGS="$CFLAGS -ffast-math")
AX_CHECK_COMPILE_FLAG(-ffast-math, CFLAGS="$CFLAGS -ffast-math")
 
# not all codes will benefit from this.
 
AX_CHECK_COMPILE_FLAG(-funroll-loops, CFLAGS="$CFLAGS -funroll-loops")
 
AX_GCC_ARCHFLAG($acx_maxopt_portable)
AX_GCC_ARCHFLAG($acx_maxopt_portable)
;;
;;
Loading