This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: regclass fix 2
- To: Richard Henderson <rth at redhat dot com>, Jan Hubicka <jh at suse dot cz>, gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- Subject: Re: regclass fix 2
- From: Jan Hubicka <jh at suse dot cz>
- Date: Tue, 6 Mar 2001 18:05:31 +0100
- References: <20010215112719.J12268@atrey.karlin.mff.cuni.cz> <20010219115239.A25912@redhat.com>
Hi,
I've been thinking for some time about the regclass costs and updating them for
keeping the costs of union. This don't seems to be possible. If I write
template with two different alternative that first specifies instruction inside
first half of union class, while second in second half, I exploit the knowledge
that the union class is union class.
The regclass costs are computed as minimum over all alternatives (this is an
optimistics guess) and simply since there is no alternative mentioning the
union class, the cost is naturally high.
Of course I can once the costs is computed take a look at the classes union
class consist of and compute the maximum, but thats exactly what I do at
the end, when I construct class preferences and doing so sooner is just
waste of time.
So I tend to believe that solution I have is sane and there is no real need
to update the calculations to keep the "union property".
What do you think?
Honza