Commit d380e329 by Jan Hubicka Committed by Jan Hubicka

re PR lto/92406 (ICE in ipa_call_summary at ipa-fnsummary.h:253 with lto and pgo)


	PR ipa/92406
	* ipa-fnsummary.c (analyze_function_body): Use get_create to copy
	summary.

From-SVN: r277927
parent c6145f2a
2019-11-07 Jan Hubicka <jh@suse.cz>
PR ipa/92406
* ipa-fnsummary.c (analyze_function_body): Use get_create to copy
summary.
2019-11-07 Jan Hubicka <jh@suse.cz>
* optc-save-gen.awk: Generate cl_target_option_free
and cl_optimization_option_free.
* opth-en.awk: Declare cl_target_option_free
......@@ -2483,7 +2483,7 @@ analyze_function_body (struct cgraph_node *node, bool early)
edge->speculative_call_info (direct, indirect, ref);
gcc_assert (direct == edge);
ipa_call_summary *es2
= ipa_call_summaries->get (indirect);
= ipa_call_summaries->get_create (indirect);
ipa_call_summaries->duplicate (edge, indirect,
es, es2);
}
......
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