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]

number of spills and reloads


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


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