Commit 57292ce9 by Jan Hubicka Committed by Jan Hubicka

* cgraph.c (cgraph_speculative_call_info): Fix ref lookup

From-SVN: r202129
parent b9cbfeeb
2013-08-31 Jan Hubicka <jh@suse.cz> 2013-08-31 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_speculative_call_info): Fix ref lookup
2013-08-31 Jan Hubicka <jh@suse.cz>
* basic-block.h (apply_scale): Make scale parmeter gcov_type. * basic-block.h (apply_scale): Make scale parmeter gcov_type.
2013-08-31 Uros Bizjak <ubizjak@gmail.com> 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
......
...@@ -1151,7 +1151,7 @@ cgraph_speculative_call_info (struct cgraph_edge *e, ...@@ -1151,7 +1151,7 @@ cgraph_speculative_call_info (struct cgraph_edge *e,
i, ref); i++) i, ref); i++)
if (ref->speculative if (ref->speculative
&& ((ref->stmt && ref->stmt == e->call_stmt) && ((ref->stmt && ref->stmt == e->call_stmt)
|| (ref->lto_stmt_uid == e->lto_stmt_uid))) || (!ref->stmt && ref->lto_stmt_uid == e->lto_stmt_uid)))
{ {
reference = ref; reference = ref;
break; break;
......
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