From 5712f4e2b7e7f40b2daa6af2db763dd1241c73c4 Mon Sep 17 00:00:00 2001 From: Mark Horvath Date: Mon, 19 May 2025 16:40:52 +0000 Subject: [PATCH] [NFC] Add comment for an undocumented cmake check Document why the KLEIDICV_NEON_USE_CONTINUOUS_MULTIVEC_LS flag was implemented. --- kleidicv/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kleidicv/CMakeLists.txt b/kleidicv/CMakeLists.txt index d152093c6..f48bb2a88 100644 --- a/kleidicv/CMakeLists.txt +++ b/kleidicv/CMakeLists.txt @@ -51,6 +51,8 @@ option(KLEIDICV_PREFER_INTERLEAVING_LOAD_STORE "Internal - If turned ON interlea option(KLEIDICV_EXPERIMENTAL_FEATURE_CANNY "Internal - Enable experimental Canny algorithm" OFF) option(KLEIDICV_CANNY_ALGORITHM_CONFORM_OPENCV "Internal - If turned ON Canny algorithm creates bit exact result compared to OpenCV's original implementation" ON) +# Continuous load and store NEON instructions produce suboptimal code generation on GCC version <= 11, +# and these instructions are not supported on GCC version <=8. if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11 OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(KLEIDICV_NEON_USE_CONTINUOUS_MULTIVEC_LS ON) else() -- GitLab