Bernd Schmidt <ber...@codesourcery.com> writes: > On 07/21/11 17:42, Richard Sandiford wrote: >> Tested on arm-linux-gnueabi. Thoughts? > > I'll try to find some time to look at it a bit.
Thanks. > One thing I've always > wanted to do is move auto-inc-dec after reload, so that we can remove > inc_for_reload - do you think your new code could handle this? Not as things stand, I'm afraid. In some cases, the new code tries to create new pseudo registers if there's no obvious base register to reuse. I suppose we could add some code to try to find a free hard register, but for the kind of loops that motivated this change, it's probably better to keep it before reload and get the more realistic sched1 output. (I think the new code, like the old code, could handle other cases quite happily after reload. I did wonder whether we should try to run it twice, once before reload and once after.) Richard