From e813ee348588e487e51ac05b676fd732dc0f6da5 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 9 Jun 2017 20:32:47 +0200 Subject: [PATCH] * predict.c (unlikely_executed_stmt_p): Cleanup. From-SVN: r249068 --- gcc/ChangeLog | 4 ++++ gcc/predict.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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; -- 2.30.2