Commit 31b27938 by Jan Hubicka Committed by Jan Hubicka

ipa-cp.c (ipcp_driver): Relase prev_edge.

	* ipa-cp.c (ipcp_driver): Relase prev_edge.
	* passes.c (execute_one_pass): Only add transform if pass has one.

From-SVN: r222038
parent 5ff9ab9b
2015-04-12 Jan Hubicka <hubicka@ucw.cz>
* ipa-cp.c (ipcp_driver): Relase prev_edge.
* passes.c (execute_one_pass): Only add transform if pass has one.
2015-04-12 Joseph Myers <joseph@codesourcery.com> 2015-04-12 Joseph Myers <joseph@codesourcery.com>
* config/i386/i386.c (ix86_option_override_internal): Don't set * config/i386/i386.c (ix86_option_override_internal): Don't set
......
...@@ -4493,6 +4493,7 @@ ipcp_driver (void) ...@@ -4493,6 +4493,7 @@ ipcp_driver (void)
/* Free all IPCP structures. */ /* Free all IPCP structures. */
free_toporder_info (&topo); free_toporder_info (&topo);
next_edge_clone.release (); next_edge_clone.release ();
prev_edge_clone.release ();
symtab->remove_edge_removal_hook (edge_removal_hook_holder); symtab->remove_edge_removal_hook (edge_removal_hook_holder);
symtab->remove_edge_duplication_hook (edge_duplication_hook_holder); symtab->remove_edge_duplication_hook (edge_duplication_hook_holder);
ipa_free_all_structures_after_ipa_cp (); ipa_free_all_structures_after_ipa_cp ();
......
...@@ -2350,6 +2350,7 @@ execute_one_pass (opt_pass *pass) ...@@ -2350,6 +2350,7 @@ execute_one_pass (opt_pass *pass)
if (pass->type == IPA_PASS) if (pass->type == IPA_PASS)
{ {
struct cgraph_node *node; struct cgraph_node *node;
if (((ipa_opt_pass_d *)pass)->function_transform)
FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node) FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node)
node->ipa_transforms_to_apply.safe_push ((ipa_opt_pass_d *)pass); node->ipa_transforms_to_apply.safe_push ((ipa_opt_pass_d *)pass);
} }
......
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