From: Tom de Vries Date: Fri, 10 Jan 2014 10:37:22 +0000 (+0000) Subject: Note that pass_pre destroys PROP_no_crit_edges X-Git-Tag: releases/gcc-4.9.0~1725 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91db35373a0edf8c465154cd4dce7431e4e12fa1;p=thirdparty%2Fgcc.git Note that pass_pre destroys PROP_no_crit_edges 2014-01-09 Tom de Vries * tree-ssa-pre.c (pass_data_pre): Add comment about PROP_no_crit_edges in properties_required. Add PROP_no_crit_edges to properties_destroyed. * tree-ssa-sink.c (pass_data_sink_code): Remove PROP_no_crit_edges from properties_required. From-SVN: r206517 --- diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 2de5db568390..1e55356556fd 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -4798,9 +4798,11 @@ const pass_data pass_data_pre = true, /* has_gate */ true, /* has_execute */ TV_TREE_PRE, /* tv_id */ + /* PROP_no_crit_edges is ensured by placing pass_split_crit_edges before + pass_pre. */ ( PROP_no_crit_edges | PROP_cfg | PROP_ssa ), /* properties_required */ 0, /* properties_provided */ - 0, /* properties_destroyed */ + PROP_no_crit_edges, /* properties_destroyed */ TODO_rebuild_alias, /* todo_flags_start */ TODO_verify_ssa, /* todo_flags_finish */ }; diff --git a/gcc/tree-ssa-sink.c b/gcc/tree-ssa-sink.c index a72a9e8c8f3d..6d02975c4dda 100644 --- a/gcc/tree-ssa-sink.c +++ b/gcc/tree-ssa-sink.c @@ -604,7 +604,9 @@ const pass_data pass_data_sink_code = true, /* has_gate */ true, /* has_execute */ TV_TREE_SINK, /* tv_id */ - ( PROP_no_crit_edges | PROP_cfg | PROP_ssa ), /* properties_required */ + /* PROP_no_crit_edges is ensured by running split_critical_edges in + execute_sink_code. */ + ( PROP_cfg | PROP_ssa ), /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */