diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-16 11:15:49 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-16 11:15:49 +0000 |
commit | 794f30aff57f5d8fd646c67167710170cc96f305 (patch) | |
tree | 80d197af61d041d04410d977ef7abaf4c0a2c5a0 /gcc/unroll.c | |
parent | 437322c767af402add195358d72ceb4ea1ffa389 (diff) | |
download | gcc-794f30aff57f5d8fd646c67167710170cc96f305.tar.gz |
* 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
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 9 |
1 files changed, 8 insertions, 1 deletions
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, |