From 2f8eb9091b18ca1a7b6868980a41678f6d93b9ed Mon Sep 17 00:00:00 2001 From: rguenth Date: Mon, 11 May 2009 12:19:00 +0000 Subject: [PATCH] 2009-05-11 Richard Guenther * passes.c (init_optimization_passes): Strip now incorrect comment. (execute_function_todo): Do not set PROP_alias. * tree-pass.h (PROP_alias): Remove. * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias. * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias. * tree-nrv.c (pass_return_slot): Likewise. * tree-object-size.c (pass_object_sizes): Likewise. * tree-ssa-dom.c (pass_dominator): Likewise. (pass_phi_only_cprop): Likewise. * tree-ssa-dse.c (pass_dse): Likewise. * tree-ssa-phiopt.c (pass_phiopt): Likewise. (pass_cselim): Likewise. * tree-ssa-pre.c (pass_pre): Likewise. (pass_fre): Likewise. * tree-ssa-reassoc.c (pass_reassoc): Likewise. * tree-ssa-sink.c (pass_sink_code): Likewise. * tree-stdarg.c (pass_stdarg): Likewise. * tree-tailcall.c (pass_tail_calls): Likewise. * tree-vrp.c (pass_vrp): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147371 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 22 ++++++++++++++++++++++ gcc/passes.c | 8 -------- gcc/tree-if-conv.c | 2 +- gcc/tree-nrv.c | 2 +- gcc/tree-object-size.c | 2 +- gcc/tree-pass.h | 5 ++--- gcc/tree-ssa-dom.c | 4 ++-- gcc/tree-ssa-dse.c | 4 +--- gcc/tree-ssa-phiopt.c | 4 ++-- gcc/tree-ssa-pre.c | 4 ++-- gcc/tree-ssa-reassoc.c | 2 +- gcc/tree-ssa-sink.c | 2 +- gcc/tree-ssa-structalias.c | 2 +- gcc/tree-stdarg.c | 2 +- gcc/tree-tailcall.c | 2 +- gcc/tree-vrp.c | 2 +- 16 files changed, 40 insertions(+), 29 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1c13f5..71052b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,25 @@ +2009-05-11 Richard Guenther + + * passes.c (init_optimization_passes): Strip now incorrect comment. + (execute_function_todo): Do not set PROP_alias. + * tree-pass.h (PROP_alias): Remove. + * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias. + * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias. + * tree-nrv.c (pass_return_slot): Likewise. + * tree-object-size.c (pass_object_sizes): Likewise. + * tree-ssa-dom.c (pass_dominator): Likewise. + (pass_phi_only_cprop): Likewise. + * tree-ssa-dse.c (pass_dse): Likewise. + * tree-ssa-phiopt.c (pass_phiopt): Likewise. + (pass_cselim): Likewise. + * tree-ssa-pre.c (pass_pre): Likewise. + (pass_fre): Likewise. + * tree-ssa-reassoc.c (pass_reassoc): Likewise. + * tree-ssa-sink.c (pass_sink_code): Likewise. + * tree-stdarg.c (pass_stdarg): Likewise. + * tree-tailcall.c (pass_tail_calls): Likewise. + * tree-vrp.c (pass_vrp): Likewise. + 2009-05-10 Ian Lance Taylor * basic-block.h (enum profile_status): Break out of struct diff --git a/gcc/passes.c b/gcc/passes.c index 7a39ac7..b66ed1d 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -595,13 +595,6 @@ init_optimization_passes (void) NEXT_PASS (pass_complete_unrolli); NEXT_PASS (pass_ccp); NEXT_PASS (pass_forwprop); - /* Ideally the function call conditional - dead code elimination phase can be delayed - till later where potentially more opportunities - can be found. Due to lack of good ways to - update VDEFs associated with the shrink-wrapped - calls, it is better to do the transformation - here where memory SSA is not built yet. */ NEXT_PASS (pass_call_cdce); /* pass_build_alias is a dummy pass that ensures that we execute TODO_rebuild_alias at this point. Re-building @@ -956,7 +949,6 @@ execute_function_todo (void *data) if (!(flags & TODO_update_address_taken)) execute_update_addresses_taken (true); compute_may_aliases (); - cfun->curr_properties |= PROP_alias; } if (flags & TODO_remove_unused_locals) diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 70c6149..c1b0532 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -1163,7 +1163,7 @@ struct gimple_opt_pass pass_if_conversion = NULL, /* next */ 0, /* static_pass_number */ TV_NONE, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-nrv.c b/gcc/tree-nrv.c index 07245cd..c1e9d60 100644 --- a/gcc/tree-nrv.c +++ b/gcc/tree-nrv.c @@ -360,7 +360,7 @@ struct gimple_opt_pass pass_return_slot = NULL, /* next */ 0, /* static_pass_number */ TV_NONE, /* tv_id */ - PROP_ssa | PROP_alias, /* properties_required */ + PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c index d99bc23..18e62e8 100644 --- a/gcc/tree-object-size.c +++ b/gcc/tree-object-size.c @@ -1113,7 +1113,7 @@ struct gimple_opt_pass pass_object_sizes = NULL, /* next */ 0, /* static_pass_number */ TV_NONE, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index 464de5e..0237bce 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -215,9 +215,8 @@ struct dump_file_info #define PROP_ssa (1 << 5) #define PROP_no_crit_edges (1 << 6) #define PROP_rtl (1 << 7) -#define PROP_alias (1 << 8) -#define PROP_gimple_lomp (1 << 9) /* lowered OpenMP directives */ -#define PROP_cfglayout (1 << 10) /* cfglayout mode on RTL */ +#define PROP_gimple_lomp (1 << 8) /* lowered OpenMP directives */ +#define PROP_cfglayout (1 << 9) /* cfglayout mode on RTL */ #define PROP_trees \ (PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh | PROP_gimple_lomp) diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index a134244..a041f0e 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -768,7 +768,7 @@ struct gimple_opt_pass pass_dominator = NULL, /* next */ 0, /* static_pass_number */ TV_TREE_SSA_DOMINATOR_OPTS, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ @@ -2923,7 +2923,7 @@ struct gimple_opt_pass pass_phi_only_cprop = NULL, /* next */ 0, /* static_pass_number */ TV_TREE_PHI_CPROP, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 315b550..5df1aa1 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -460,9 +460,7 @@ struct gimple_opt_pass pass_dse = NULL, /* next */ 0, /* static_pass_number */ TV_TREE_DSE, /* tv_id */ - PROP_cfg - | PROP_ssa - | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index 72ba04a..3cdb9b3 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -1276,7 +1276,7 @@ struct gimple_opt_pass pass_phiopt = NULL, /* next */ 0, /* static_pass_number */ TV_TREE_PHIOPT, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ @@ -1305,7 +1305,7 @@ struct gimple_opt_pass pass_cselim = NULL, /* next */ 0, /* static_pass_number */ TV_TREE_PHIOPT, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 3273c19..5922614 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -4558,7 +4558,7 @@ struct gimple_opt_pass pass_pre = 0, /* static_pass_number */ TV_TREE_PRE, /* tv_id */ PROP_no_crit_edges | PROP_cfg - | PROP_ssa | PROP_alias, /* properties_required */ + | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ TODO_rebuild_alias, /* todo_flags_start */ @@ -4593,7 +4593,7 @@ struct gimple_opt_pass pass_fre = NULL, /* next */ 0, /* static_pass_number */ TV_TREE_FRE, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index a3e8468..416409f 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -2070,7 +2070,7 @@ struct gimple_opt_pass pass_reassoc = NULL, /* next */ 0, /* static_pass_number */ TV_TREE_REASSOC, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-ssa-sink.c b/gcc/tree-ssa-sink.c index d0c550d..227ad11 100644 --- a/gcc/tree-ssa-sink.c +++ b/gcc/tree-ssa-sink.c @@ -570,7 +570,7 @@ struct gimple_opt_pass pass_sink_code = 0, /* static_pass_number */ TV_TREE_SINK, /* tv_id */ PROP_no_crit_edges | PROP_cfg - | PROP_ssa | PROP_alias, /* properties_required */ + | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 3bcaeb1..eda053f 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -5753,7 +5753,7 @@ struct gimple_opt_pass pass_build_alias = 0, /* static_pass_number */ TV_NONE, /* tv_id */ PROP_cfg | PROP_ssa, /* properties_required */ - PROP_alias, /* properties_provided */ + 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_rebuild_alias | TODO_dump_func /* todo_flags_finish */ diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c index f9a2110..4e030b1 100644 --- a/gcc/tree-stdarg.c +++ b/gcc/tree-stdarg.c @@ -906,7 +906,7 @@ struct gimple_opt_pass pass_stdarg = NULL, /* next */ 0, /* static_pass_number */ TV_NONE, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 6b03eaa..23d849f 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -1019,7 +1019,7 @@ struct gimple_opt_pass pass_tail_calls = NULL, /* next */ 0, /* static_pass_number */ TV_NONE, /* tv_id */ - PROP_cfg | PROP_ssa | PROP_alias, /* properties_required */ + PROP_cfg | PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 09c6342..3a86b82 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -7347,7 +7347,7 @@ struct gimple_opt_pass pass_vrp = NULL, /* next */ 0, /* static_pass_number */ TV_TREE_VRP, /* tv_id */ - PROP_ssa | PROP_alias, /* properties_required */ + PROP_ssa, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ -- 2.7.4