From: Jan Hubicka Date: Mon, 13 Apr 2015 06:27:57 +0000 (+0200) Subject: ipa-cp.c (ipcp_driver): Relase prev_edge. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31b2793874585acdcc7dafb85f3e6dc04eedef90;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dfd76ab6147..bf946562db0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-12 Jan Hubicka + + * 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 * config/i386/i386.c (ix86_option_override_internal): Don't set diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index bfe4821da33..38240290423 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -4493,6 +4493,7 @@ ipcp_driver (void) /* Free all IPCP structures. */ free_toporder_info (&topo); next_edge_clone.release (); + prev_edge_clone.release (); symtab->remove_edge_removal_hook (edge_removal_hook_holder); symtab->remove_edge_duplication_hook (edge_duplication_hook_holder); ipa_free_all_structures_after_ipa_cp (); diff --git a/gcc/passes.c b/gcc/passes.c index 062ae4f0d1b..beffd3f587a 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -2350,8 +2350,9 @@ execute_one_pass (opt_pass *pass) if (pass->type == IPA_PASS) { struct cgraph_node *node; - FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node) - node->ipa_transforms_to_apply.safe_push ((ipa_opt_pass_d *)pass); + if (((ipa_opt_pass_d *)pass)->function_transform) + FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node) + node->ipa_transforms_to_apply.safe_push ((ipa_opt_pass_d *)pass); } if (!current_function_decl)