* predict.c (unlikely_executed_stmt_p): Cleanup.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 9 Jun 2017 18:32:47 +0000 (20:32 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 9 Jun 2017 18:32:47 +0000 (18:32 +0000)
From-SVN: r249068

gcc/ChangeLog
gcc/predict.c

index 6e1960f6a801d3a541480ca628f30d1b4e77c399..7dec15309b02ff6168f445bd6cfb62974e966966 100644 (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
index ca40068c150777e22e7198364b4d0eac84b550a6..764a9151d77bf0a63438cfb2d47abe46025a38af 100644 (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;