Commit 4be1caf9 by Eric Botcazou Committed by Eric Botcazou

tree-ssa-dom.c (tree_ssa_dominator_optimize): Do not free dominance info after purging EH edges.

	* tree-ssa-dom.c (tree_ssa_dominator_optimize): Do not free dominance
	info after purging EH edges.
	(eliminate_degenerate_phis): Likewise.

From-SVN: r124499
parent 8d9d6561
2007-05-07 Eric Botcazou <ebotcazou@adacore.com> 2007-05-07 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered. * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
Free dominance info before purging EH edges as well as after. Free dominance info before purging EH edges.
(eliminate_degenerate_phis): Likewise. (eliminate_degenerate_phis): Likewise.
(propagate_rhs_into_lhs): Set cfg_altered to true instead of 1. (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
......
...@@ -328,8 +328,7 @@ tree_ssa_dominator_optimize (void) ...@@ -328,8 +328,7 @@ tree_ssa_dominator_optimize (void)
such edges from the CFG as needed. */ such edges from the CFG as needed. */
if (!bitmap_empty_p (need_eh_cleanup)) if (!bitmap_empty_p (need_eh_cleanup))
{ {
if (tree_purge_all_dead_eh_edges (need_eh_cleanup)) tree_purge_all_dead_eh_edges (need_eh_cleanup);
free_dominance_info (CDI_DOMINATORS);
bitmap_zero (need_eh_cleanup); bitmap_zero (need_eh_cleanup);
} }
...@@ -2533,8 +2532,7 @@ eliminate_degenerate_phis (void) ...@@ -2533,8 +2532,7 @@ eliminate_degenerate_phis (void)
such edges from the CFG as needed. */ such edges from the CFG as needed. */
if (!bitmap_empty_p (need_eh_cleanup)) if (!bitmap_empty_p (need_eh_cleanup))
{ {
if (tree_purge_all_dead_eh_edges (need_eh_cleanup)) tree_purge_all_dead_eh_edges (need_eh_cleanup);
free_dominance_info (CDI_DOMINATORS);
BITMAP_FREE (need_eh_cleanup); BITMAP_FREE (need_eh_cleanup);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment