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 f17ed1fe91d51cb7128747174eac500792970cc2..849de45f2c8ca937cc55e887db6bfb3d52bbd1aa 100644 (file)
@@ -1,3 +1,8 @@
+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
index 8482be5e543fe05a55cceb2f4af9814073365d5f..204cd0d0645550c0da759219279b06522143e32c 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);
        }
     }