unroll.c (precondition_loop_p): Fail if no iteration variable found.

* unroll.c (precondition_loop_p): Fail if no iteration
        variable found.

From-SVN: r39064
This commit is contained in:
Richard Henderson 2001-01-16 03:15:49 -08:00 committed by Richard Henderson
parent 9607098926
commit c55fa4d6b1
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-01-16 Richard Henderson <rth@redhat.com>
* unroll.c (precondition_loop_p): Fail if no iteration
variable found.
2001-01-16 Phil Edwards <pme@sources.redhat.com>
* gcc.c: When -fsyntax-only is given, do not complain about

View File

@ -1381,7 +1381,14 @@ precondition_loop_p (loop, initial_value, final_value, increment, mode)
return 1;
}
if (loop_info->initial_value == 0)
if (loop_info->iteration_var == 0)
{
if (loop_dump_stream)
fprintf (loop_dump_stream,
"Preconditioning: Could not find iteration variable.\n");
return 0;
}
else if (loop_info->initial_value == 0)
{
if (loop_dump_stream)
fprintf (loop_dump_stream,