summaryrefslogtreecommitdiff
path: root/gcc/loop-doloop.c
diff options
context:
space:
mode:
authoramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-09 15:35:46 +0000
committeramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-09 15:35:46 +0000
commit23b937aa82a4b9ca83c4798603571e76f0d9f6eb (patch)
treea49cf5c3a2e91c9f7b431d806a3a79d41a2d8938 /gcc/loop-doloop.c
parentf582970570948740dad953d023cf76c9b73180ed (diff)
downloadgcc-23b937aa82a4b9ca83c4798603571e76f0d9f6eb.tar.gz
* loop-doloop.c (doloop_modify, doloop_optimize): Use
get_max_loop_iterations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-doloop.c')
-rw-r--r--gcc/loop-doloop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c
index b989454ed9e..1bc9aa392a2 100644
--- a/gcc/loop-doloop.c
+++ b/gcc/loop-doloop.c
@@ -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