aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-06-09 20:32:47 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-06-09 18:32:47 +0000
commite813ee348588e487e51ac05b676fd732dc0f6da5 (patch)
treed1e976d1a1a941cfff91eb3da9ebf87d260b84b2 /gcc/predict.c
parentf66e6423731a517873fdf5dfc3e67bae7f8acb48 (diff)
downloadgcc-e813ee348588e487e51ac05b676fd732dc0f6da5.zip
gcc-e813ee348588e487e51ac05b676fd732dc0f6da5.tar.gz
gcc-e813ee348588e487e51ac05b676fd732dc0f6da5.tar.bz2
* predict.c (unlikely_executed_stmt_p): Cleanup.
From-SVN: r249068
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index ca40068..764a915 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;