summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-16 11:15:49 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-16 11:15:49 +0000
commit794f30aff57f5d8fd646c67167710170cc96f305 (patch)
tree80d197af61d041d04410d977ef7abaf4c0a2c5a0
parent437322c767af402add195358d72ceb4ea1ffa389 (diff)
downloadppe42-gcc-794f30aff57f5d8fd646c67167710170cc96f305.tar.gz
ppe42-gcc-794f30aff57f5d8fd646c67167710170cc96f305.zip
* unroll.c (precondition_loop_p): Fail if no iteration
variable found. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39064 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/unroll.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ff2e283c057..a4d8d7958d1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 9289595d039..ec0a151f3eb 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -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,
OpenPOWER on IntegriCloud