Commit 5adf448c by Eric Botcazou Committed by Eric Botcazou

re PR rtl-optimization/10955 ([SPARC] wrong code at -O3 for structure argument…

re PR rtl-optimization/10955 ([SPARC] wrong code at -O3 for structure argument in context of structure return)

	PR optimization/10955
	* unroll.c (unroll_loop): Fix off-by-one bug.

From-SVN: r67870
parent e860ed6d
2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/10955
* unroll.c (unroll_loop): Fix off-by-one bug.
2003-06-12 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (function_arg): Remove typo.
......
2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.c-torture/execute/20030611-1.c: New test.
2003-06-12 Roger Sayle <roger@eyesopen.com>
PR middle-end/168
......
......@@ -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.
......
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