Commit 311fe27c by Bernd Schmidt Committed by Bernd Schmidt

Fix abort in loop_iterations

From-SVN: r30698
parent 83c23b6c
1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
* unroll.c (loop_iterations): Don't abort if iteration variable
was made by loop.
1999-11-29 David S. Miller <davem@redhat.com> 1999-11-29 David S. Miller <davem@redhat.com>
* config/sparc/sparc.c (init_cumulative_args): Fix type of third * config/sparc/sparc.c (init_cumulative_args): Fix type of third
......
...@@ -3687,11 +3687,9 @@ loop_iterations (loop_start, loop_end, loop_info) ...@@ -3687,11 +3687,9 @@ loop_iterations (loop_start, loop_end, loop_info)
return 0; return 0;
} }
/* The only new registers that care created before loop iterations are /* This can happen due to optimization in load_mems. */
givs made from biv increments, so this should never occur. */
if ((unsigned) REGNO (iteration_var) >= reg_iv_type->num_elements) if ((unsigned) REGNO (iteration_var) >= reg_iv_type->num_elements)
abort (); return 0;
iteration_info (iteration_var, &initial_value, &increment, iteration_info (iteration_var, &initial_value, &increment,
loop_start, loop_end); loop_start, loop_end);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment