This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: find_free_registers improvement for new_ia32_branch
- To: Richard Henderson <rth at cygnus dot com>, egcs-patches at egcs dot cygnus dot com
- Subject: Re: find_free_registers improvement for new_ia32_branch
- From: Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>
- Date: Tue, 20 Jul 1999 08:01:56 +0200
- References: <19990712032914.43183@atrey.karlin.mff.cuni.cz> <19990719225846.B14696@cygnus.com>
> > ! while (forward && currdist < MAXDIST)
> > ! {
> > ! if (refers_to_regno_p (regno, regno + 1, forward, NULL))
> > ! goto found;
> > ! currdist++;
> > ! forward = NEXT_INSN (forward);
> > ! }
>
> This seems like an awfully expensive test.
Thats why I am using MAXDIST. It is set to 8, so not so many instrucitons
are examined and it is large enought to break dependencies.
>
> Could you perhaps find a way to collect lru info during the
> mark_target_live_regs scan, to be saved in struct resource?
> That would at least cover the backward scan.
Do you have any suggestion how?
I am not sure if I can do it when I am absolutely not aware about changes
in the code...
Honza
>
>
> r~
--
OK. Lets make a signature file.
+-------------------------------------------------------------------------+
| Jan Hubicka (Jan Hubi\v{c}ka in TeX) hubicka@freesoft.cz |
| Czech free software foundation: http://www.freesoft.cz |
|AA project - the new way for computer graphics - http://www.ta.jcu.cz/aa |
| homepage: http://www.paru.cas.cz/~hubicka/, games koules, Xonix, fast |
| fractal zoomer XaoS, index of Czech GNU/Linux/UN*X documentation etc. |
+-------------------------------------------------------------------------+