Commit e57872ee by Jan Hubicka Committed by Jan Hubicka

re PR c++/58477 (ice in cgraph_speculative_call_info)

	PR middle-end/58477
	* cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.

From-SVN: r205991
parent 156c0160
2013-12-14 Jan Hubicka <jh@suse.cz>
PR middle-end/58477
* cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
PR target/59492
......@@ -123,7 +123,10 @@ cgraph_clone_edge (struct cgraph_edge *e, struct cgraph_node *n,
{
tree decl;
if (call_stmt && (decl = gimple_call_fndecl (call_stmt)))
if (call_stmt && (decl = gimple_call_fndecl (call_stmt))
/* When the call is speculative, we need to resolve it
via cgraph_resolve_speculation and not here. */
&& !e->speculative)
{
struct cgraph_node *callee = cgraph_get_node (decl);
gcc_checking_assert (callee);
......
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