summaryrefslogtreecommitdiff
path: root/gcc/unroll.c
diff options
context:
space:
mode:
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-29 10:51:09 +0000
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-29 10:51:09 +0000
commita12e142fcf885e3a4c1b6392a053db96557c4db0 (patch)
treef08204689c9adc2076a0256c4af56c7c2c60a5c0 /gcc/unroll.c
parent667dbefdacddb2ac2f5cfcc2dd105ee65bf1e839 (diff)
downloadgcc-a12e142fcf885e3a4c1b6392a053db96557c4db0.tar.gz
Fix abort in loop_iterations
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30698 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r--gcc/unroll.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 3994e79c226..94451e1717b 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -3687,11 +3687,9 @@ loop_iterations (loop_start, loop_end, loop_info)
return 0;
}
- /* The only new registers that care created before loop iterations are
- givs made from biv increments, so this should never occur. */
-
+ /* This can happen due to optimization in load_mems. */
if ((unsigned) REGNO (iteration_var) >= reg_iv_type->num_elements)
- abort ();
+ return 0;
iteration_info (iteration_var, &initial_value, &increment,
loop_start, loop_end);