Temporary Hard register

Jeff Law law@redhat.com
Mon Apr 27 16:39:00 GMT 2015


On 04/27/2015 10:30 AM, ftwilliam wrote:
> Is there a function that can be used to obtain a temporary hard
> register without defining it in FIXED_REGISTERS and
> CALL_USED_REGISTERS ?
For what purpose?

If you need a scratch/temporary for reload, the way to get them is via 
secondary reloads.

If you just need a scratch register for a pattern, you can allocate a 
pseudo in an expander and clobber it in the pattern.

You can also use match_scratch.  Though you might invite Vladimir's 
wrath for doing that.

Jeff



More information about the Gcc-help mailing list