number of spills and reloads
Qiong Cai
qiong.cai@gmail.com
Mon Aug 23 16:04:00 GMT 2004
Hi,
I'd like to know the number of spills and reloads generated by
register allocator in GCC. After having a look at the dump after
global register allocation, I found something like the following:
...
Spilling for insn ...
Using reg 1 for reload 0 ...
....
So I add the counter "num_spills" in function "find_reload_regs" and the counter
"num_reloads" in "find_reg" in "reload1.c" just after the instructions
printing out the above information. Is this correct? Because the
reload phase is complicated, I'm quite suspicious what I did.
thanks
Qiong
More information about the Gcc
mailing list