This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Does IRA support spilling to registers instead of stack?
- From: dpadgett_mail-000 at yahoo dot com
- To: gcc at gcc dot gnu dot org
- Date: Mon, 18 Jul 2011 14:20:06 -0700 (PDT)
- Subject: Does IRA support spilling to registers instead of stack?
- Reply-to: dpadgett_mail-000 at yahoo dot com
Hello,
Does gcc IRA provide a mechanism to support spilling to registers instead of the stack? For the particular target I'm looking at, there are some non-general-purpose registers that can be copied to and from more quickly than the stack, so would be preferable to use as a form of shareable spill slot in some cases. One limitation, which is perhaps a significant one, is that these registers are not callee save, so one would only want to save to and restore from them when there is no intervening function call. If there is no current support for such a mechanism, any opinions on the value and practicality of adding one would be much appreciated.
Thanks, Don