* predict.c (unlikely_executed_stmt_p): Cleanup.

From-SVN: r249068
This commit is contained in:
Jan Hubicka 2017-06-09 20:32:47 +02:00 committed by Jan Hubicka
parent f66e642373
commit e813ee3485
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2017-06-09 Jan Hubicka <hubicka@ucw.cz>
* predict.c (unlikely_executed_stmt_p): Cleanup.
2017-06-09 Richard Biener <rguenther@suse.de>
* tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded

View File

@ -797,10 +797,11 @@ unlikely_executed_stmt_p (gimple *stmt)
cgraph_node *n = cgraph_node::get (decl);
if (!n)
return false;
enum availability avail;
availability avail;
n = n->ultimate_alias_target (&avail);
if (avail < AVAIL_AVAILABLE)
return NULL;
return false;
if (!n->analyzed
|| n->decl == current_function_decl)
return false;