mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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.
This commit is contained in:
committed by
Richard Biener
parent
699287fd7b
commit
8fad025430
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user