This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Any ideas how to get the IRA to choose one subclass of registers over another in the same cover class?
- From: Jeff Law <law at redhat dot com>
- To: Dave Hudson <gcc at blueteddy dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 25 Jun 2009 12:18:43 -0600
- Subject: Re: Any ideas how to get the IRA to choose one subclass of registers over another in the same cover class?
- References: <4A4252C3.3020208@blueteddy.net>
Dave Hudson wrote:
I would have hoped that having done the analysis early on that the
register allocator would try to allocate from the preferred register
class rather than the cover class but it seems that doesn't happen?
So you're saying that the register preferences look reasonable, but in
low pressure situations the allocator appears to largely ignore the
preferred register class?
It might help if you could provide some debugging dumps. The .ira dump
in particular contains a wealth of information about the decisions the
allocator is making.
Anyone have any ideas other than writing a pass that runs before
reload and tries to fix this up?
The first thing is to understand why IRA is doing what it's doing.
We're generally better off generating a good allocation rather than
trying to clean it up post-allocation.
jeff