aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-09-17 17:03:26 -0700
committerRichard Henderson <rth@gcc.gnu.org>2005-09-17 17:03:26 -0700
commitb1e8be10601e9394f9cb4873e46d83ab04d2dab2 (patch)
tree7f27a2447a866f4286914f3aa9e9e17820c5201a /gcc
parent5e839bc82015c2659f230cf1141ec868cf5d449c (diff)
downloadgcc-b1e8be10601e9394f9cb4873e46d83ab04d2dab2.zip
gcc-b1e8be10601e9394f9cb4873e46d83ab04d2dab2.tar.gz
gcc-b1e8be10601e9394f9cb4873e46d83ab04d2dab2.tar.bz2
tree-pass.h, [...]: Revert last change.
* tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change. * tree-ssa-loop.c (pass_vect_dce): Remove. * passes.c (init_optimization_passes): Add pass_dce as a sub-pass of pass_vectorize. From-SVN: r104382
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/passes.c5
-rw-r--r--gcc/tree-flow.h3
-rw-r--r--gcc/tree-pass.h1
-rw-r--r--gcc/tree-ssa-dce.c2
-rw-r--r--gcc/tree-ssa-loop.c21
6 files changed, 12 insertions, 27 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b32d3c0..20db797 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
2005-09-17 Richard Henderson <rth@redhat.com>
+ * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
+ * tree-ssa-loop.c (pass_vect_dce): Remove.
+ * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
+ of pass_vectorize.
+
+2005-09-17 Richard Henderson <rth@redhat.com>
+
* tree-pass.h (pass_vect_dce): Declare.
* passes.c (init_optimization_passes): Add it.
* tree-flow.h (tree_ssa_dce): Declare.
diff --git a/gcc/passes.c b/gcc/passes.c
index bf6db2c..6a35b17 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -567,7 +567,6 @@ init_optimization_passes (void)
NEXT_PASS (pass_iv_canon);
NEXT_PASS (pass_if_conversion);
NEXT_PASS (pass_vectorize);
- NEXT_PASS (pass_vect_dce);
/* NEXT_PASS (pass_may_alias) cannot be done again because the
vectorizer creates alias relations that are not supported by
pass_may_alias. */
@@ -577,6 +576,10 @@ init_optimization_passes (void)
NEXT_PASS (pass_tree_loop_done);
*p = NULL;
+ p = &pass_vectorize.sub;
+ NEXT_PASS (pass_dce);
+ *p = NULL;
+
p = &pass_loop2.sub;
NEXT_PASS (pass_rtl_loop_init);
NEXT_PASS (pass_rtl_move_loop_invariants);
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h
index ee53971..fa5c1d6 100644
--- a/gcc/tree-flow.h
+++ b/gcc/tree-flow.h
@@ -707,9 +707,6 @@ struct tree_niter_desc
the loop), then the information would be lost. */
};
-/* In tree-ssa-dce.c */
-void tree_ssa_dce (void);
-
/* In tree-vectorizer.c */
void vectorize_loops (struct loops *);
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index cca51d3..57dc029 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -234,7 +234,6 @@ extern struct tree_opt_pass pass_empty_loop;
extern struct tree_opt_pass pass_record_bounds;
extern struct tree_opt_pass pass_if_conversion;
extern struct tree_opt_pass pass_vectorize;
-extern struct tree_opt_pass pass_vect_dce;
extern struct tree_opt_pass pass_complete_unroll;
extern struct tree_opt_pass pass_iv_optimize;
extern struct tree_opt_pass pass_tree_loop_done;
diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c
index e77bc60..8902d2a 100644
--- a/gcc/tree-ssa-dce.c
+++ b/gcc/tree-ssa-dce.c
@@ -935,7 +935,7 @@ perform_tree_ssa_dce (bool aggressive)
}
/* Pass entry points. */
-void
+static void
tree_ssa_dce (void)
{
perform_tree_ssa_dce (/*aggressive=*/false);
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c
index ce62972..34126b1 100644
--- a/gcc/tree-ssa-loop.c
+++ b/gcc/tree-ssa-loop.c
@@ -214,27 +214,6 @@ struct tree_opt_pass pass_vectorize =
0 /* letter */
};
-struct tree_opt_pass pass_vect_dce =
-{
- "vect_dce", /* name */
- gate_tree_vectorize, /* gate */
- tree_ssa_dce, /* execute */
- NULL, /* sub */
- NULL, /* next */
- 0, /* static_pass_number */
- TV_TREE_DCE, /* tv_id */
- PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- TODO_dump_func
- | TODO_update_ssa_no_phi
- | TODO_cleanup_cfg
- | TODO_ggc_collect
- | TODO_verify_ssa, /* todo_flags_finish */
- 0 /* letter */
-};
-
/* Loop nest optimizations. */
static void