Skip to content
Snippets Groups Projects
Commit def34d3a authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Merge branch 'compiler-optimizations' into 'master'

Add -funroll-loops as a standard GCC optimization

SWIFT is faster with this.

Fixes #244.

See merge request !283
parents 907b0ce7 d5ebecb3
No related branches found
No related tags found
1 merge request!283Add -funroll-loops as a standard GCC optimization
......@@ -160,6 +160,9 @@ if test "$ac_test_CFLAGS" != "set"; then
# note that we enable "unsafe" fp optimization with other compilers, too
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)
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment