This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to fix register allocation bug


Michael Matz <matz@suse.de> writes:
> I now think for a hot fix it's good enough (but I've no karma).  The right
> one would be to teach it about multi-reg pseudos, but well, that would
> need a loop to cumulate the costs of all parts and it's not clear this is
> worth anything ;-)

I wondered about that, but I wasn't sure whether simply adding
the costs of each individual register would be good enough.
Would it accurately trade off one DFmode load or store against
two SFmode ones?

It's probably worth noting that, as well as fixing the
original test case, the patch gave significantly smaller
output.  It was the kind of code that had a lot of printf()s
so I'm afraid I didn't bother measuring the speed difference.

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]