This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reduce startup cost of compiler (patch 2)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]