This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Reduce startup cost of compiler (patch 2)
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Michael Matz <matz at suse dot de>
- Cc: Jan Hubicka <jh at suse dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 3 Aug 2007 14:43:04 +0200
- Subject: Re: Reduce startup cost of compiler (patch 2)
- References: <20070724050210.GC10270@kam.mff.cuni.cz> <20070729203752.GH25795@sygehus.dk> <20070731035216.GD20007@kam.mff.cuni.cz> <20070731121109.GU25795@sygehus.dk> <20070731154449.GA11467@kam.mff.cuni.cz> <20070803091636.GM25795@sygehus.dk> <Pine.LNX.4.64.0708031408180.23011@wotan.suse.de>
On Fri, Aug 03, 2007 at 02:13:04PM +0200, Michael Matz wrote:
> OTOH if it was really only about optimization (i.e. choosing ALL_REGS is
> a bad decision) then adjusting the move cost was correct, but you didn't
> really have to use 65535 :-) It would have been enough to make the cost
> higher than for memory moves.
Yes, it's purely an optimization issue. There are no useable registers in
ALL_REGS that aren't in any other class also. ALL_REGS is simply a junk
class. I picked COSTS_N_INSNS (60000) to mean "disabled". That's now
COSTS_N_INSNS (16000) which seems to do the trick also. :-)
--
Rask Ingemann Lambertsen