On Fri, 2006-06-23 at 15:29 -0400, Robert Dewar wrote: > Andrew MacLeod wrote: > > > A new register allocator written from scratch is a very long term > > project (measured in years), and there is no guarantee after all that > > work that we'd end up with something which is remarkably better. One > > would hope that it is a lot more maintainable, but the generated code is > > a crapshot. It will surely look better but will it really run faster? > > The current plate of spaghetti we call the register allocator has had a > > lot of fine tuning go into it over the years, and it generally generates > > pretty darn good code IF it doesn't have to spill much, which is much of > > the time. > > If you are starting from scratch would it not be better to adopt > the approach of combining register allocation and scheduling. > Significant progress has been made in this area in recent years. >
I am personally not a believer in combining register allocation and scheduling. They are two different problems, and although there is some interaction, I am still in the "keep them seperate" camp. However, RABLET is not writing a register allocator so its moot anyway :-). Andrew