Commit cefdbe2f by Jan Hubicka Committed by Jan Hubicka

re PR middle-end/42151 (verify_cgraph_node failed with -O3 -Winline)

	PR middle-end/42151
	* ipa-inline.c (inline_transform): Avoid ICE when transform is called
	twice.

From-SVN: r154475
parent 83a4e6e9
2009-11-23 Jan Hubicka <jh@suse.cz> 2009-11-23 Jan Hubicka <jh@suse.cz>
PR middle-end/42151
* ipa-inline.c (inline_transform): Avoid ICE when transform is called
twice.
2009-11-23 Jan Hubicka <jh@suse.cz>
* ipa-cp.c (ipcp_compute_node_scale): Work around completely * ipa-cp.c (ipcp_compute_node_scale): Work around completely
wrong profile updates. wrong profile updates.
* predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
...@@ -1974,6 +1974,11 @@ inline_transform (struct cgraph_node *node) ...@@ -1974,6 +1974,11 @@ inline_transform (struct cgraph_node *node)
unsigned int todo = 0; unsigned int todo = 0;
struct cgraph_edge *e; struct cgraph_edge *e;
/* FIXME: Currently the passmanager is adding inline transform more than once to some
clones. This needs revisiting after WPA cleanups. */
if (cfun->after_inlining)
return 0;
/* We might need the body of this function so that we can expand /* We might need the body of this function so that we can expand
it inline somewhere else. */ it inline somewhere else. */
if (cgraph_preserve_function_body_p (node->decl)) if (cgraph_preserve_function_body_p (node->decl))
......
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