mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 15:11:08 +08:00
(iteration_info): Fix code so that it knows iteration_var is a
HOST_WIDE_INT, not a long. From-SVN: r13164
This commit is contained in:
parent
80906567f4
commit
f6beed2169
10
gcc/unroll.c
10
gcc/unroll.c
@ -2263,14 +2263,16 @@ iteration_info (iteration_var, initial_value, increment, loop_start, loop_end)
|
||||
"Loop unrolling: No reg_iv_type entry for iteration var.\n");
|
||||
return;
|
||||
}
|
||||
/* Reject iteration variables larger than the host long size, since they
|
||||
|
||||
/* Reject iteration variables larger than the host wide int size, since they
|
||||
could result in a number of iterations greater than the range of our
|
||||
`unsigned long' variable loop_n_iterations. */
|
||||
else if (GET_MODE_BITSIZE (GET_MODE (iteration_var)) > HOST_BITS_PER_LONG)
|
||||
`unsigned HOST_WIDE_INT' variable loop_n_iterations. */
|
||||
else if ((GET_MODE_BITSIZE (GET_MODE (iteration_var))
|
||||
> HOST_BITS_PER_WIDE_INT))
|
||||
{
|
||||
if (loop_dump_stream)
|
||||
fprintf (loop_dump_stream,
|
||||
"Loop unrolling: Iteration var rejected because mode larger than host long.\n");
|
||||
"Loop unrolling: Iteration var rejected because mode too large.\n");
|
||||
return;
|
||||
}
|
||||
else if (GET_MODE_CLASS (GET_MODE (iteration_var)) != MODE_INT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user