From 1d9941a7c003587c0bd732fb8b21fee5cefa6f87 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 29 Jun 2013 21:56:13 +0100 Subject: [PATCH] sna: Add the Ofast option to the critical memcpy routines Always enable gcc to fully optimize the core memcpy routines (provided that optimisations are not entirely disabled, for instance for debugging). Signed-off-by: Chris Wilson --- src/sna/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/compiler.h b/src/sna/compiler.h index 75e691ad..641b490c 100644 --- a/src/sna/compiler.h +++ b/src/sna/compiler.h @@ -66,7 +66,7 @@ #endif #if HAS_GCC(4, 5) && defined(__OPTIMIZE__) -#define fast_memcpy __attribute__((target("inline-all-stringops"))) +#define fast_memcpy __attribute__((optimize("Ofast"))) __attribute__((target("inline-all-stringops"))) #else #define fast_memcpy #endif