* count in spill_regs
@ 2018-03-28 21:31 Sirish Pande
2018-04-02 16:36 ` Vladimir Makarov
0 siblings, 1 reply; 2+ messages in thread
From: Sirish Pande @ 2018-03-28 21:31 UTC (permalink / raw)
To: gcc
Hi,
I am interested to know if there is any option that would tell me how many
registers have spilled. I noticed that there is spilled_regs array in
reload1.c - but I can't seem to find where it dumps that information.
Potentially I could build compiler with debug information; however, if an
option exists, that would be great.
If anyone knows of such an option, please share.
Thanks.
Sirish
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: count in spill_regs
2018-03-28 21:31 count in spill_regs Sirish Pande
@ 2018-04-02 16:36 ` Vladimir Makarov
0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Makarov @ 2018-04-02 16:36 UTC (permalink / raw)
To: gcc
On 03/28/2018 05:31 PM, Sirish Pande wrote:
> Hi,
>
> I am interested to know if there is any option that would tell me how many
> registers have spilled. I noticed that there is spilled_regs array in
> reload1.c - but I can't seem to find where it dumps that information.
> Potentially I could build compiler with debug information; however, if an
> option exists, that would be great.
> If anyone knows of such an option, please share.
>
 There is no such option and there would be no sense for such option.Â
GCC RA does a lot of things including pseudo-register live range
splitting and rematerialization. The RA might create a lot of new
pseudos during its work.
 You can find some allocation metrics in .ira dump file (as the
overall allocation cost, cost of using pseudos which were allocated to
hard registers and memory, costs of loads, stores and moves generated
during global RA). The calculation is based on CFG BB and edge
frequency estimation. The calculation will be more accurate when you
use profiling.
 But the allocation can be changed after IRA (global RA) in LRA (local
RA) which might also create additional insns and pseudos. Btw reload
pass is not used for major targets anymore. It is an old pass which is
being substituted by LRA.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-02 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 21:31 count in spill_regs Sirish Pande
2018-04-02 16:36 ` Vladimir Makarov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).