This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strenghten early inliner analysis


Hi,
the problem is that we free node params when early analysis is called late
via add_new_function.

Bootstrapped/regtsted x86_64-linux, comitted.

Honza

2014-12-30  Jan Hubicka  <hubicka@ucw.cz>

	* ipa-inline-analysis.c (estimate_function_body_sizes): Do not
	free node params when called late with early=true.

Index: ipa-inline-analysis.c
===================================================================
--- ipa-inline-analysis.c	(revision 219108)
+++ ipa-inline-analysis.c	(working copy)
@@ -2851,7 +2851,7 @@ estimate_function_body_sizes (struct cgr
     {
       if (!early)
         loop_optimizer_finalize ();
-      else
+      else if (!ipa_edge_args_vector)
 	ipa_free_all_node_params ();
       free_dominance_info (CDI_DOMINATORS);
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]