From: Jan Hubicka Date: Fri, 9 Jun 2017 18:32:47 +0000 (+0200) Subject: * predict.c (unlikely_executed_stmt_p): Cleanup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e813ee348588e487e51ac05b676fd732dc0f6da5;p=gcc.git * predict.c (unlikely_executed_stmt_p): Cleanup. From-SVN: r249068 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6e1960f6a80..7dec15309b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-06-09 Jan Hubicka + + * predict.c (unlikely_executed_stmt_p): Cleanup. + 2017-06-09 Richard Biener * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded diff --git a/gcc/predict.c b/gcc/predict.c index ca40068c150..764a9151d77 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -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;