From d8286fa2a5775ba7a4ab2c9fe5fb9376d500bfd8 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Fri, 19 Sep 2025 13:34:06 +0200 Subject: [PATCH] Add 'loop-vectorize', 'slp-vectorize', 'unroll-loops' and 'merge-functions' optimization flags #2491. --- releasenotes.md | 1 + src/build/build_options.c | 24 ++++++++++++++++++++++++ src/build/project.c | 18 ++++++++++++++++-- src/build/project_manipulation.c | 4 ++++ 4 files changed, 45 insertions(+), 2 deletions(-) diff --git a/releasenotes.md b/releasenotes.md index 76d8d532b..09df6a9e0 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -10,6 +10,7 @@ - Unify generic and regular module namespace. - `env::PROJECT_VERSION` now returns the version in project.json. - Comparing slices and arrays of user-defined types that implement == operator now works #2486. +- Add 'loop-vectorize', 'slp-vectorize', 'unroll-loops' and 'merge-functions' optimization flags #2491. ### Fixes - Compiler assert with var x @noinit = 0 #2452 diff --git a/src/build/build_options.c b/src/build/build_options.c index 190b01a1d..362c9c05e 100644 --- a/src/build/build_options.c +++ b/src/build/build_options.c @@ -128,6 +128,10 @@ static void usage(bool full) print_opt("--panic-msg=", "Turn panic message output on or off."); print_opt("--optlevel=