aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop.c
diff options
context:
space:
mode:
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2021-11-15 15:37:36 +0530
committerPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2021-11-15 15:37:36 +0530
commit2551cd4f9bc1afee444a56e03c1cee6899593da9 (patch)
tree19d9192cc6660bf32a652d4d965899302c952f4b /gcc/tree-ssa-loop.c
parenta91f844ef449d0dd1cf2e0e47b0ade0d8a6304e1 (diff)
downloadgcc-2551cd4f9bc1afee444a56e03c1cee6899593da9.zip
gcc-2551cd4f9bc1afee444a56e03c1cee6899593da9.tar.gz
gcc-2551cd4f9bc1afee444a56e03c1cee6899593da9.tar.bz2
[tree-vectorizer.c] Merge pass_vectorize::execute with vectorize_loops and replace occurences of cfun with function param.
gcc/ChangeLog: * tree-ssa-loop.c (pass_vectorize): Move to tree-vectorizer.c. (pass_data_vectorize): Likewise. (make_pass_vectorize): Likewise. * tree-vectorizer.c (vectorize_loops): Merge with pass_vectorize::execute and replace cfun occurences with fun param. (adjust_simduid_builtins): Add fun param, replace cfun occurences with fun, and adjust callers approrpiately. (note_simd_array_uses): Likewise. (vect_loop_dist_alias_call): Likewise. (set_uid_loop_bbs): Likewise. (vect_transform_loops): Likewise. (try_vectorize_loop_1): Likewise. (try_vectorize_loop): Likewise.
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r--gcc/tree-ssa-loop.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c
index 1bbf2f1..6b54e2b 100644
--- a/gcc/tree-ssa-loop.c
+++ b/gcc/tree-ssa-loop.c
@@ -370,57 +370,6 @@ make_pass_tree_loop_init (gcc::context *ctxt)
return new pass_tree_loop_init (ctxt);
}
-/* Loop autovectorization. */
-
-namespace {
-
-const pass_data pass_data_vectorize =
-{
- GIMPLE_PASS, /* type */
- "vect", /* name */
- OPTGROUP_LOOP | OPTGROUP_VEC, /* optinfo_flags */
- TV_TREE_VECTORIZATION, /* tv_id */
- ( PROP_cfg | PROP_ssa ), /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- 0, /* todo_flags_finish */
-};
-
-class pass_vectorize : public gimple_opt_pass
-{
-public:
- pass_vectorize (gcc::context *ctxt)
- : gimple_opt_pass (pass_data_vectorize, ctxt)
- {}
-
- /* opt_pass methods: */
- virtual bool gate (function *fun)
- {
- return flag_tree_loop_vectorize || fun->has_force_vectorize_loops;
- }
-
- virtual unsigned int execute (function *);
-
-}; // class pass_vectorize
-
-unsigned int
-pass_vectorize::execute (function *fun)
-{
- if (number_of_loops (fun) <= 1)
- return 0;
-
- return vectorize_loops ();
-}
-
-} // anon namespace
-
-gimple_opt_pass *
-make_pass_vectorize (gcc::context *ctxt)
-{
- return new pass_vectorize (ctxt);
-}
-
/* Propagation of constants using scev. */
namespace {