PR middle-end/58477
* cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
From-SVN: r205991
+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
{
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);