From c2a98a170f0726e174a2c02e2e3e5730b2794699 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 7 Jan 2019 12:22:09 +0100 Subject: [PATCH] Try -ftree-vectorize and -ftree-slp-vectorize for optimized builds --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index e3d6ce5a..28eeb5dd 100644 --- a/configure.ac +++ b/configure.ac @@ -185,6 +185,8 @@ AC_ARG_ENABLE(opt, [ AS_IF([test "x$enableval" = "xyes"], [ AX_CHECK_COMPILE_FLAG([-Ofast], [CFLAGS="$CFLAGS -Ofast"]) + AX_CHECK_COMPILE_FLAG([-ftree-vectorize], [CFLAGS="$CFLAGS -ftree-vectorize"]) + AX_CHECK_COMPILE_FLAG([-ftree-slp-vectorize], [CFLAGS="$CFLAGS -ftree-slp-vectorize"]) AX_CHECK_COMPILE_FLAG([-fomit-frame-pointer], [CFLAGS="$CFLAGS -fomit-frame-pointer"]) AX_CHECK_COMPILE_FLAG([-march=native], [CFLAGS="$CFLAGS -march=native"]) ])