From 6af34bc023e44384ab6bf28efad0a84f4ad85a35 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 30 Jan 2018 16:26:42 +1100 Subject: [PATCH] optimisation: add stubs for unsafe maths --- nc_optimisation.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nc_optimisation.cmake b/nc_optimisation.cmake index df0bffe..19cf8ad 100644 --- a/nc_optimisation.cmake +++ b/nc_optimisation.cmake @@ -82,9 +82,13 @@ endif () ############################################################################### if (CMAKE_BUILD_TYPE MATCHES Debug) else() - append_compile_flag(-ftree-vectorize) + # unsafe maths + # append_compile_flag(-funsafe-math-optimizations) + # append_compile_flag(-ffast-math) + # append_compile_flag(-fno-finite-math-only) - # clang vectorisation + # vectorisation + append_compile_flag(-ftree-vectorize) append_compile_flag(-fvectorize) append_compile_flag(-fslp-vectorize)