diff options
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 666b31b..7b4913c 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -201,7 +201,7 @@ struct gimple_opt_pass pass_cleanup_cfg_post_optimizing = { { GIMPLE_PASS, - "final_cleanup", /* name */ + "optimized", /* name */ NULL, /* gate */ execute_cleanup_cfg_post_optimizing, /* execute */ NULL, /* sub */ @@ -213,13 +213,14 @@ struct gimple_opt_pass pass_cleanup_cfg_post_optimizing = 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_dump_func /* todo_flags_finish */ + | TODO_remove_unused_locals } }; /* Pass: do the actions required to finish with tree-ssa optimization passes. */ -static unsigned int +unsigned int execute_free_datastructures (void) { free_dominance_info (CDI_DOMINATORS); @@ -228,6 +229,10 @@ execute_free_datastructures (void) /* Remove the ssa structures. */ if (cfun->gimple_df) delete_tree_ssa (); + + /* And get rid of annotations we no longer need. */ + delete_tree_cfg_annotations (); + return 0; } @@ -254,9 +259,6 @@ struct gimple_opt_pass pass_free_datastructures = static unsigned int execute_free_cfg_annotations (void) { - /* And get rid of annotations we no longer need. */ - delete_tree_cfg_annotations (); - return 0; } |