tree-ssa-dom.c (tree_ssa_dominator_optimize): Call free_dominance_info only when needed.

* tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
	free_dominance_info only when needed.

From-SVN: r95791
This commit is contained in:
Kazu Hirata 2005-03-02 19:12:55 +00:00 committed by Kazu Hirata
parent adf4a335e3
commit 13396b14c0
2 changed files with 5 additions and 1 deletions

View file

@ -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 <edelsohn@gnu.org>
PR target/20276

View file

@ -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);