From c32258fbc694ea082b37c05096c6c8b657be78cf Mon Sep 17 00:00:00 2001 From: kazu Date: Wed, 2 Mar 2005 19:12:55 +0000 Subject: [PATCH] * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call free_dominance_info only when needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95791 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 3 +++ gcc/tree-ssa-dom.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d65dd24b0b6f..e5e19ccd4939 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -5,6 +5,9 @@ (unchecked_make_edge, remove_edge, redirect_edge_succ, redirect_edge_pred): Use the new functions. + * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call + free_dominance_info only when needed. + 2005-03-02 David Edelsohn PR target/20276 diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 5216c3b63136..242de47b6108 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -444,7 +444,8 @@ tree_ssa_dominator_optimize (void) bitmap_zero (need_eh_cleanup); } - free_dominance_info (CDI_DOMINATORS); + if (cfg_altered) + free_dominance_info (CDI_DOMINATORS); cfg_altered |= cleanup_tree_cfg (); calculate_dominance_info (CDI_DOMINATORS); -- 2.11.4.GIT