]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
loop-doloop.c (doloop_modify, [...]): Use get_max_loop_iterations.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 9 Oct 2013 15:35:46 +0000 (15:35 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Wed, 9 Oct 2013 15:35:46 +0000 (15:35 +0000)
* loop-doloop.c (doloop_modify, doloop_optimize): Use
get_max_loop_iterations.

From-SVN: r203324

gcc/ChangeLog
gcc/loop-doloop.c

index 61f9dcb3edf48e166b126a0d71ecc416db496abe..b4279467fa487350ae3b50a8087674c0efc3294a 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
+
+       * loop-doloop.c (doloop_modify, doloop_optimize): Use 
+       get_max_loop_iterations.
+
 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * config/arm/aarch-common.c (arm_early_load_addr_dep):
index b989454ed9e9a4dfb0896c11cfd8eaad37bb3e5c..1bc9aa392a27466d99453c86c9a436988671fab6 100644 (file)
@@ -460,7 +460,7 @@ doloop_modify (struct loop *loop, struct niter_desc *desc,
 
       /* Determine if the iteration counter will be non-negative.
         Note that the maximum value loaded is iterations_max - 1.  */
-      if (max_loop_iterations (loop, &iterations)
+      if (get_max_loop_iterations (loop, &iterations)
          && (iterations.ule (double_int_one.llshift
                               (GET_MODE_PRECISION (mode) - 1,
                                GET_MODE_PRECISION (mode)))))
@@ -552,7 +552,7 @@ doloop_modify (struct loop *loop, struct niter_desc *desc,
     double_int iter;
     rtx iter_rtx;
 
-    if (!max_loop_iterations (loop, &iter)
+    if (!get_max_loop_iterations (loop, &iter)
        || !iter.fits_shwi ())
       iter_rtx = const0_rtx;
     else
@@ -669,7 +669,7 @@ doloop_optimize (struct loop *loop)
 
   count = copy_rtx (desc->niter_expr);
   iterations = desc->const_iter ? desc->niter_expr : const0_rtx;
-  if (!max_loop_iterations (loop, &iter)
+  if (!get_max_loop_iterations (loop, &iter)
       || !iter.fits_shwi ())
     iterations_max = const0_rtx;
   else