diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-13 03:34:02 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-13 03:34:02 +0000 |
commit | baa317dd517a187e2d4eba304b7315094d5b5860 (patch) | |
tree | fa7a79f20d4d5a8d98f8b55461728097df43f2ee /gcc/unroll.c | |
parent | 81f536a39d212c8dc0ed46ae94b242e17b6ac420 (diff) | |
download | gcc-baa317dd517a187e2d4eba304b7315094d5b5860.tar.gz |
PR optimization/10955
* unroll.c (unroll_loop): Fix off-by-one bug.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67870 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 43539c34eaf..e7e03ab8de3 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -791,9 +791,9 @@ unroll_loop (loop, insn_count, strength_reduce_p) /* We must limit the generic test to max_reg_before_loop, because only these pseudo registers have valid regno_first_uid info. */ for (r = FIRST_PSEUDO_REGISTER; r < max_reg_before_loop; ++r) - if (REGNO_FIRST_UID (r) > 0 && REGNO_FIRST_UID (r) <= max_uid_for_loop + if (REGNO_FIRST_UID (r) > 0 && REGNO_FIRST_UID (r) < max_uid_for_loop && REGNO_FIRST_LUID (r) >= copy_start_luid - && REGNO_LAST_UID (r) > 0 && REGNO_LAST_UID (r) <= max_uid_for_loop + && REGNO_LAST_UID (r) > 0 && REGNO_LAST_UID (r) < max_uid_for_loop && REGNO_LAST_LUID (r) <= copy_end_luid) { /* However, we must also check for loop-carried dependencies. |