public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Dumping control flow graph after each optimization pass
@ 2021-10-16 20:27 Jayakrishna Vadayath
  0 siblings, 0 replies; only message in thread
From: Jayakrishna Vadayath @ 2021-10-16 20:27 UTC (permalink / raw)
  To: gcc-help

Dear devs,

I wanted to know if it is possible to dump the control flow graph
representation of functions before/after each optimization pass.

I found that it is possible to dump the IR after each optimization
pass using the following flags:
-fdump-ipa-all-all -fdump-rtl-all-all -fdump-tree-all-all.

I also found that using the flag -fdump-tree-all-graph can dump the
control flow graph representation into .dot files.

However, when I compared the number of files generated by both of
these sets of flags,
I found that the first set generated more files than the second one.

I believe this is because the second set only dumps the graph
representation for the optimization passes that fall into -fdump-tree
and does not include the optimization passes for -fdump-ipa and
-fdump-rtl.

Is there a way to dump the control flow graph representation for all
of the optimization passes ?
Please let me know

Thank you.
-- 
Regards
Jayakrishna Menon

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-16 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-16 20:27 Dumping control flow graph after each optimization pass Jayakrishna Vadayath

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).