This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Strenghten early inliner analysis
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Markus Trippelsdorf <markus at trippelsdorf dot de>, Jan Hubicka <hubicka at ucw dot cz>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 30 Dec 2014 23:04:31 +0100
- Subject: Re: Strenghten early inliner analysis
- Authentication-results: sourceware.org; auth=none
- References: <20141230113749 dot GB13958 at kam dot mff dot cuni dot cz> <20141230132155 dot GA5696 at x4> <CAMe9rOq_jsVZ4G7yqqY0wn2VmU3zNk0ZWj+08Yrvth2r4ec4Tw at mail dot gmail dot com>
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);
}