sel-sched-ir.c (compute_succs_info): Handle uninitialized probabilities consistently.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 1 Jul 2017 07:44:45 +0000 (09:44 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 1 Jul 2017 07:44:45 +0000 (07:44 +0000)
* sel-sched-ir.c (compute_succs_info): Handle uninitialized
probabilities consistently.

From-SVN: r249863

gcc/ChangeLog
gcc/sel-sched-ir.c

index 1df0a7166b7dec52590e769ca5141e15ab9db969..525c2c4b93fcf162658e454e90d44d1eb44cf726 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
+
+       * sel-sched-ir.c (compute_succs_info): Handle uninitialized
+       probabilities consistently.
+
 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
 
        * pa.c (pa_expand_compare_and_swap_loop): Update call of
index dd72828795dbbc62abedfb3c85883d74cd06446c..e78d30999a8b3015dd0068e29e08b493d4a3abcf 100644 (file)
@@ -4749,7 +4749,7 @@ compute_succs_info (insn_t insn, short flags)
                        inner loop to exits.  */
                     si.bb_end && si.e1->probability.initialized_p ()
                    ? si.e1->probability.to_reg_br_prob_base ()
-                   : REG_BR_PROB_BASE);
+                   : 0);
           sinfo->succs_ok_n++;
         }
       else