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:
parent
9607098926
commit
c55fa4d6b1
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user