https://gcc.gnu.org/g:8fad025430b4fded6c9ebbc6bd4fd8ac4e8a2194
commit r16-5169-g8fad025430b4fded6c9ebbc6bd4fd8ac4e8a2194 Author: Richard Biener <[email protected]> Date: Fri Nov 7 13:54:14 2025 +0100 Enable ranger for the vectorizer The following enables ranger for the vectorizer, this lets niter analysis use the active ranger to simplify conditions. PR tree-optimization/122587 * tree-vectorizer.cc (pass_vectorize::execute): Enable ranger around analysis and code generation. Diff: --- gcc/tree-vectorizer.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/tree-vectorizer.cc b/gcc/tree-vectorizer.cc index 97b6297fb145..e7a3f2650483 100644 --- a/gcc/tree-vectorizer.cc +++ b/gcc/tree-vectorizer.cc @@ -83,6 +83,7 @@ along with GCC; see the file COPYING3. If not see #include "internal-fn.h" #include "tree-ssa-sccvn.h" #include "tree-into-ssa.h" +#include "gimple-range.h" /* Loop or bb location, with hotness information. */ dump_user_location_t vect_location; @@ -1279,6 +1280,7 @@ pass_vectorize::execute (function *fun) note_simd_array_uses (&simd_array_to_simduid_htab, fun); /* ----------- Analyze loops. ----------- */ + enable_ranger (fun); /* If some loop was duplicated, it gets bigger number than all previously defined loops. This fact allows us to run @@ -1341,6 +1343,7 @@ pass_vectorize::execute (function *fun) num_vectorized_loops); /* ----------- Finalize. ----------- */ + disable_ranger (fun); if (any_ifcvt_loops) for (i = 1; i < number_of_loops (fun); i++)
