summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-11-07 13:54:14 +0100
committerRichard Biener <rguenth@gcc.gnu.org>2025-11-11 15:36:04 +0100
commit8fad025430b4fded6c9ebbc6bd4fd8ac4e8a2194 (patch)
tree868ae63361fb1f4d4ea02b282906d4041edda8b4
parent699287fd7b3943ac04f78c4897a38b2170d5248e (diff)
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.
-rw-r--r--gcc/tree-vectorizer.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-vectorizer.cc b/gcc/tree-vectorizer.cc
index 97b6297fb14..e7a3f265048 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++)