This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Speedup find_reloads
> * reload.c (secondary_memlocs_elim_used): New static variable.
> (get_secondary_mem): Update it.
> (find_reloads): Use it.
>
> The above patch is the cause of the PowrePC bootstrap failure on AIX.
Does the attached patch help? There is thinko in the bookeeping code, I
probably didn't noticed it becasue i386 never use that array at all.
I will commit it as obvious if it helps your problem.
Honza
2004-01-30 Jan Hubicka <jh@suse.cz>
* reload.c (get_secondary_mem): Fix updating of
secondary_memlocs_elim_used.
Index: reload.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload.c,v
retrieving revision 1.229.4.2
diff -c -3 -p -r1.229.4.2 reload.c
*** reload.c 30 Jan 2004 11:14:41 -0000 1.229.4.2
--- reload.c 30 Jan 2004 20:21:22 -0000
*************** get_secondary_mem (rtx x ATTRIBUTE_UNUSE
*** 645,652 ****
}
secondary_memlocs_elim[(int) mode][opnum] = loc;
! if (secondary_memlocs_elim_used <= opnum)
! secondary_memlocs_elim_used = opnum + 1;
return loc;
}
--- 645,652 ----
}
secondary_memlocs_elim[(int) mode][opnum] = loc;
! if (secondary_memlocs_elim_used <= (int)mode)
! secondary_memlocs_elim_used = (int)mode + 1;
return loc;
}