> This is a little bit simpler than what you find in find_free_reg. Any
> comments/suggestions at this point?

The local register allocator (local-alloc.c) has been removed in the upcoming 
4.4.x series of compilers so you might want to try something else.  Doing it
during register allocation seems tricky, a machine-specific reorg pass could 
be more appropriate.  I'm not sure we already have something like this in the 
compiler (SPARC has a double-load instruction but it's only implemented as a 
peephole).

-- 
Eric Botcazou

Reply via email to