* Re: Another question. How can I dump gimple IR after optimization pass?
[not found] <b798aad50802271237u54dc3361u67ee99024378e2b@mail.gmail.com>
@ 2008-02-27 23:19 ` Haifeng He
2008-02-27 23:24 ` Diego Novillo
0 siblings, 1 reply; 4+ messages in thread
From: Haifeng He @ 2008-02-27 23:19 UTC (permalink / raw)
To: Diego Novillo; +Cc: gcc-help
Thank you for the response. I guess if I only want to check the result
of my own pass without
any other optimization, I still need to write my own dump function.
Haifeng
On Wed, Feb 27, 2008 at 1:37 PM, Diego Novillo <dnovillo@google.com> wrote:
>
>
> 2008/2/26 Haifeng He <hehaifeng2nd@gmail.com>:
>
>
> > I have another question. I would like to dump gimple IR into file in
> > order to debug
>
> -fdump-tree-optimized is the very last GIMPLE dump before going into RTL.
> That dump file will reflect all the optimizations done on GIMPLE.
> -fdump-tree-all will give you a 100 or so dump files with the incremental
> effects of each optimization pass.
>
> See the internal documentation and tutorials at
> http://gcc.gnu.org/wiki/GettingStarted
>
> Diego.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Another question. How can I dump gimple IR after optimization pass?
2008-02-27 23:19 ` Another question. How can I dump gimple IR after optimization pass? Haifeng He
@ 2008-02-27 23:24 ` Diego Novillo
2008-02-28 6:32 ` Haifeng He
0 siblings, 1 reply; 4+ messages in thread
From: Diego Novillo @ 2008-02-27 23:24 UTC (permalink / raw)
To: Haifeng He; +Cc: gcc-help
On 27-Feb-08, at 17:44 , Haifeng He wrote:
> Thank you for the response. I guess if I only want to check the result
> of my own pass without
> any other optimization, I still need to write my own dump function.
No, you simply need to mark a ToDo item in the pass descriptor. See
for instance, pass_vrp and look for TODO_dump_func.
Diego.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Another question. How can I dump gimple IR after optimization pass?
2008-02-27 23:24 ` Diego Novillo
@ 2008-02-28 6:32 ` Haifeng He
0 siblings, 0 replies; 4+ messages in thread
From: Haifeng He @ 2008-02-28 6:32 UTC (permalink / raw)
To: Diego Novillo; +Cc: gcc-help
That is very convenient. Thanks again.
Haifeng
On Wed, Feb 27, 2008 at 4:17 PM, Diego Novillo <dnovillo@google.com> wrote:
>
> On 27-Feb-08, at 17:44 , Haifeng He wrote:
>
> > Thank you for the response. I guess if I only want to check the result
> > of my own pass without
> > any other optimization, I still need to write my own dump function.
>
> No, you simply need to mark a ToDo item in the pass descriptor. See
> for instance, pass_vrp and look for TODO_dump_func.
>
>
> Diego.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Another question. How can I dump gimple IR after optimization pass?
@ 2008-02-26 11:18 Haifeng He
0 siblings, 0 replies; 4+ messages in thread
From: Haifeng He @ 2008-02-26 11:18 UTC (permalink / raw)
To: gcc-help
Hi,
I have another question. I would like to dump gimple IR into file in
order to debug
my own pass. I know that "-fdump-tree-gimple" can dump gimple code but how can
I dump gimple code after my pass has been executed? Thanks.
Haifeng
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-27 23:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <b798aad50802271237u54dc3361u67ee99024378e2b@mail.gmail.com>
2008-02-27 23:19 ` Another question. How can I dump gimple IR after optimization pass? Haifeng He
2008-02-27 23:24 ` Diego Novillo
2008-02-28 6:32 ` Haifeng He
2008-02-26 11:18 Haifeng He
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).