diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-03 10:15:55 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-03 10:15:55 +0000 |
commit | cbaca884d277c281e146585620a9dbd8f5973d3e (patch) | |
tree | 85b82454799593c708ba705dcdfbf8506252be46 /gcc/loop-doloop.c | |
parent | a32fbec1b82c84c9b5400cbd97b37eb1d2586368 (diff) | |
download | gcc-cbaca884d277c281e146585620a9dbd8f5973d3e.tar.gz |
Restore build on doloop_end targets. Revert to using GEN_INT for the
iterations_max.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@204330 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-doloop.c')
-rw-r--r-- | gcc/loop-doloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index c15c2e39db8..9bbe448bef1 100644 --- a/gcc/loop-doloop.c +++ b/gcc/loop-doloop.c @@ -549,7 +549,7 @@ doloop_modify (struct loop *loop, struct niter_desc *desc, { rtx init; unsigned level = get_loop_level (loop) + 1; - wide_int iter; + widest_int iter; rtx iter_rtx; if (!get_max_loop_iterations (loop, &iter) @@ -673,7 +673,7 @@ doloop_optimize (struct loop *loop) || !wi::fits_shwi_p (iter)) iterations_max = const0_rtx; else - iterations_max = immed_wide_int_const (iter, mode); + iterations_max = GEN_INT (iter.to_shwi ()); level = get_loop_level (loop) + 1; /* Generate looping insn. If the pattern FAILs then give up trying |