This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Debugging info on # spills?
Mostafa Hagog wrote:
Michael Matz <matz@suse.de> wrote on 08/04/2004 16:37:13:
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 even this is not dumped anywhere, right?
If you use the original global register allocator, this information will
be in global rtl dump. It is named disposition and looks like
Disposition:
75 in 0 76 in 2 ...
It means that pseudo-register 75 got hard register 0 etc. This
information is dumped after the reload (when some pseudo-register loose
their hard-registers gotten in local/global or changed their hard
registers by retry_global_alloc). So this information is final
(although hard registers can be changed by register-renaming pass). If
you want this information right after global register allocator just
call dump_global_regs before build_insn_chain in global.c
Vlad