This is the mail archive of the gcc@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]

Spill cost


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


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