Commit 2dbe8b70 by Jan Hubicka Committed by Jan Hubicka

cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove inline clones when edge disappears.

	* cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
	inline clones when edge disappears.

From-SVN: r207875
parent cc28fc7f
2014-02-18 Jan Hubicka <hubicka@ucw.cz>
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
inline clones when edge disappears.
2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com> 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/60203 PR target/60203
......
...@@ -1529,7 +1529,10 @@ cgraph_update_edges_for_call_stmt_node (struct cgraph_node *node, ...@@ -1529,7 +1529,10 @@ cgraph_update_edges_for_call_stmt_node (struct cgraph_node *node,
attached to edge is invalid. */ attached to edge is invalid. */
count = e->count; count = e->count;
frequency = e->frequency; frequency = e->frequency;
cgraph_remove_edge (e); if (e->indirect_unknown_callee || e->inline_failed)
cgraph_remove_edge (e);
else
cgraph_remove_node_and_inline_clones (e->callee, NULL);
} }
else if (new_call) else if (new_call)
{ {
......
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