aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-26 22:09:50 +0000
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-26 22:09:50 +0000
commitb75c399957796d59bd112c0c66fb9dc5b8de935a (patch)
tree8c9d7c82cbaab42b2eff59d07e4c41277e227a98
parent3199ffcb1bbd9298cf7c65d988479382061837d9 (diff)
* tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
pass_free_cfg_annotations, pass_free_datastructures): Remove decls. * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks, pass_mark_used_blocks): Remove. * tree-optimize.c (pass_free_datastructures, execute_free_cfg_annotations, pass_free_cfg_annotations): Remove. * passes.c (init_optimization_passes): Don't call pass_mark_used_blocks, remove dead code. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@146819 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/gimple-low.c58
-rw-r--r--gcc/passes.c4
-rw-r--r--gcc/tree-optimize.c45
-rw-r--r--gcc/tree-pass.h4
5 files changed, 11 insertions, 111 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cdc8b589177..9d865dc18ae 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,14 @@
+2009-04-26 Michael Matz <matz@suse.de>
+
+ * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
+ pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
+ * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
+ pass_mark_used_blocks): Remove.
+ * tree-optimize.c (pass_free_datastructures,
+ execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
+ * passes.c (init_optimization_passes): Don't call
+ pass_mark_used_blocks, remove dead code.
+
2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
* tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c
index d35ba8b8055..02a1ce63549 100644
--- a/gcc/gimple-low.c
+++ b/gcc/gimple-low.c
@@ -900,61 +900,3 @@ record_vars (tree vars)
{
record_vars_into (vars, current_function_decl);
}
-
-
-/* Mark BLOCK used if it has a used variable in it, then recurse over its
- subblocks. */
-
-static void
-mark_blocks_with_used_vars (tree block)
-{
- tree var;
- tree subblock;
-
- if (!TREE_USED (block))
- {
- for (var = BLOCK_VARS (block);
- var;
- var = TREE_CHAIN (var))
- {
- if (TREE_USED (var))
- {
- TREE_USED (block) = true;
- break;
- }
- }
- }
- for (subblock = BLOCK_SUBBLOCKS (block);
- subblock;
- subblock = BLOCK_CHAIN (subblock))
- mark_blocks_with_used_vars (subblock);
-}
-
-/* Mark the used attribute on blocks correctly. */
-
-static unsigned int
-mark_used_blocks (void)
-{
- mark_blocks_with_used_vars (DECL_INITIAL (current_function_decl));
- return 0;
-}
-
-
-struct gimple_opt_pass pass_mark_used_blocks =
-{
- {
- GIMPLE_PASS,
- "blocks", /* name */
- NULL, /* gate */
- mark_used_blocks, /* execute */
- NULL, /* sub */
- NULL, /* next */
- 0, /* static_pass_number */
- TV_NONE, /* tv_id */
- 0, /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- TODO_dump_func /* todo_flags_finish */
- }
-};
diff --git a/gcc/passes.c b/gcc/passes.c
index fbcdc9e1b57..60a24866265 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -709,13 +709,9 @@ init_optimization_passes (void)
NEXT_PASS (pass_cleanup_eh);
NEXT_PASS (pass_nrv);
NEXT_PASS (pass_mudflap_2);
- NEXT_PASS (pass_mark_used_blocks);
NEXT_PASS (pass_cleanup_cfg_post_optimizing);
NEXT_PASS (pass_warn_function_noreturn);
-/* NEXT_PASS (pass_del_ssa);
- NEXT_PASS (pass_free_datastructures);
- NEXT_PASS (pass_free_cfg_annotations);*/
NEXT_PASS (pass_expand);
NEXT_PASS (pass_rest_of_compilation);
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c
index 7b4913c5bf7..025658426cb 100644
--- a/gcc/tree-optimize.c
+++ b/gcc/tree-optimize.c
@@ -236,51 +236,6 @@ execute_free_datastructures (void)
return 0;
}
-struct gimple_opt_pass pass_free_datastructures =
-{
- {
- GIMPLE_PASS,
- NULL, /* name */
- NULL, /* gate */
- execute_free_datastructures, /* execute */
- NULL, /* sub */
- NULL, /* next */
- 0, /* static_pass_number */
- TV_NONE, /* tv_id */
- PROP_cfg, /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- 0 /* todo_flags_finish */
- }
-};
-/* Pass: free cfg annotations. */
-
-static unsigned int
-execute_free_cfg_annotations (void)
-{
- return 0;
-}
-
-struct gimple_opt_pass pass_free_cfg_annotations =
-{
- {
- GIMPLE_PASS,
- NULL, /* name */
- NULL, /* gate */
- execute_free_cfg_annotations, /* execute */
- NULL, /* sub */
- NULL, /* next */
- 0, /* static_pass_number */
- TV_NONE, /* tv_id */
- PROP_cfg, /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- 0 /* todo_flags_finish */
- }
-};
-
/* Pass: fixup_cfg. IPA passes, compilation of earlier functions or inlining
might have changed some properties, such as marked functions nothrow.
Remove redundant edges and basic blocks, and create new ones if necessary.
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index cb95fe61a9a..9f80bfd9598 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -344,7 +344,6 @@ extern struct gimple_opt_pass pass_ch;
extern struct gimple_opt_pass pass_ccp;
extern struct gimple_opt_pass pass_phi_only_cprop;
extern struct gimple_opt_pass pass_build_ssa;
-extern struct gimple_opt_pass pass_del_ssa;
extern struct gimple_opt_pass pass_build_alias;
extern struct gimple_opt_pass pass_dominator;
extern struct gimple_opt_pass pass_dce;
@@ -380,7 +379,6 @@ extern struct gimple_opt_pass pass_phiprop;
extern struct gimple_opt_pass pass_tree_ifcombine;
extern struct gimple_opt_pass pass_dse;
extern struct gimple_opt_pass pass_nrv;
-extern struct gimple_opt_pass pass_mark_used_blocks;
extern struct gimple_opt_pass pass_rename_ssa_copies;
extern struct gimple_opt_pass pass_rest_of_compilation;
extern struct gimple_opt_pass pass_sink_code;
@@ -414,8 +412,6 @@ extern struct simple_ipa_opt_pass pass_ipa_function_and_variable_visibility;
extern struct gimple_opt_pass pass_all_optimizations;
extern struct gimple_opt_pass pass_cleanup_cfg_post_optimizing;
-extern struct gimple_opt_pass pass_free_cfg_annotations;
-extern struct gimple_opt_pass pass_free_datastructures;
extern struct gimple_opt_pass pass_init_datastructures;
extern struct gimple_opt_pass pass_fixup_cfg;