This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
number of spills and reloads
- From: Qiong Cai <qiong dot cai at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 24 Aug 2004 01:46:50 +1000
- Subject: number of spills and reloads
- Reply-to: Qiong Cai <qiong dot cai at gmail dot com>
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