Debugging info on # spills?
Michael Matz
matz@suse.de
Thu Apr 8 13:37:00 GMT 2004
Hi,
On Thu, 8 Apr 2004, Mostafa Hagog wrote:
> How about a different but related question.
> Is there a way to get the number of spilled registers in a given
> compilation?
Yes, it's simply all pseudos which didn't get a hardreg, i.e. for which
reg_renumber[p] is < 0 and which are equivalent to nothing.
But that doesn't say anything about the cost of the added spill code. In
the new-ra branch I have some small dumper which basically counts the cost
of all stack related loads and stores. Under the premise that it is
constant before register allocation it gives at least some relatively sane
number about the quality of allocation.
Ciao,
Michael.
More information about the Gcc
mailing list