Commit 13396b14 by Kazu Hirata Committed by Kazu Hirata

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
parent adf4a335
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
(unchecked_make_edge, remove_edge, redirect_edge_succ, (unchecked_make_edge, remove_edge, redirect_edge_succ,
redirect_edge_pred): Use the new functions. 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> 2005-03-02 David Edelsohn <edelsohn@gnu.org>
PR target/20276 PR target/20276
......
...@@ -444,6 +444,7 @@ tree_ssa_dominator_optimize (void) ...@@ -444,6 +444,7 @@ tree_ssa_dominator_optimize (void)
bitmap_zero (need_eh_cleanup); bitmap_zero (need_eh_cleanup);
} }
if (cfg_altered)
free_dominance_info (CDI_DOMINATORS); free_dominance_info (CDI_DOMINATORS);
cfg_altered |= cleanup_tree_cfg (); cfg_altered |= cleanup_tree_cfg ();
calculate_dominance_info (CDI_DOMINATORS); calculate_dominance_info (CDI_DOMINATORS);
......
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