From 4be1caf900da7480142d0c027a251b28d2af49a0 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 7 May 2007 12:48:46 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 2 +- gcc/tree-ssa-dom.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b4284addced..ee9e51a10f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,7 @@ 2007-05-07 Eric Botcazou * 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. (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1. diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index d76c2a34f8a..7a146157f99 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -328,8 +328,7 @@ tree_ssa_dominator_optimize (void) such edges from the CFG as needed. */ if (!bitmap_empty_p (need_eh_cleanup)) { - if (tree_purge_all_dead_eh_edges (need_eh_cleanup)) - free_dominance_info (CDI_DOMINATORS); + tree_purge_all_dead_eh_edges (need_eh_cleanup); bitmap_zero (need_eh_cleanup); } @@ -2533,8 +2532,7 @@ eliminate_degenerate_phis (void) such edges from the CFG as needed. */ if (!bitmap_empty_p (need_eh_cleanup)) { - if (tree_purge_all_dead_eh_edges (need_eh_cleanup)) - free_dominance_info (CDI_DOMINATORS); + tree_purge_all_dead_eh_edges (need_eh_cleanup); BITMAP_FREE (need_eh_cleanup); }