tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE fixpoint arithm...
authorJan Hubicka <hubicka@ucw.cz>
Sun, 16 Jul 2017 16:30:40 +0000 (18:30 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 16 Jul 2017 16:30:40 +0000 (16:30 +0000)
* tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
fixpoint arithmetics.

From-SVN: r250241

gcc/ChangeLog
gcc/tree-ssa-loop-unswitch.c

index f17ed1f..849de45 100644 (file)
@@ -1,5 +1,10 @@
 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
 
+       * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
+       fixpoint arithmetics.
+
+2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
+
        * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
        fixpoint arithmetics.
 
index 8482be5..204cd0d 100644 (file)
@@ -897,9 +897,7 @@ hoist_guard (struct loop *loop, edge guard)
          if (dump_file && (dump_flags & TDF_DETAILS))
            fprintf (dump_file, " %i", bb->index);
          if (e->probability.initialized_p ())
-            scale_bbs_frequencies_int (&bb, 1,
-                                      e->probability.to_reg_br_prob_base (),
-                                      REG_BR_PROB_BASE);
+            scale_bbs_frequencies (&bb, 1, e->probability);
        }
     }