This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Update postreload.c to avoid long compilation time
On Fri, Jul 30, 2010 at 4:57 PM, Michael Matz <matz@suse.de> wrote:
>
> Hi,
>
> On Fri, 30 Jul 2010, Martin Thuresson wrote:
>
> > This patch updates the handling of temporary registers in postreload.c
> > to avoid very long build times in certain files.
> >
> > By creating new registers instead of updating one existing one using
> > SET_REGNO it avoids going through the scan df structure.
>
> But this also means generating heaps of garbage for the collector to
> collect. ?I think it would be better to not loose the current optimization
> of doing just one gen_reg_RTX(), and rather create a variant of SET_REGNO
> that doesn't call df_ref_change_reg_with_loc; SET_REGNO_RAW or something
> (or just inline the "XCUINT (RTX, 0, REG) = N" instead of using SET_REGNO
> at that place).
Thanks for the feedback. I like your suggestion of?SET_REGNO_RAW.
I'll update my patch.
Martin
>
> Ciao,
> Michael.