This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Spill cost
- From: Rajkishore Barik <rajbarik at us dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 2 Mar 2005 14:24:34 -0500
- Subject: Spill cost
- Reply-to: Rajkishore Barik <rajbarik at us dot ibm dot com>
Hi,
Does anyone know how to obtain the overall spill cost for the old reg
alloc of GCC (global.c)?
I would like to know the spill cost before reload and after the reload
(assuming reload changes the allocation).
Are there any interface already available?
By spill cost I mean:
for each reg i, if it is spilled, spill_cost+=REG_N_REFS(i)*REG_FREQ(i);
regards,
Raj