This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Cleanup the callgraph (-dU) dump file.
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Kelley Cook <kelleycook at wideopenwest dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 25 Sep 2003 16:24:32 +0200
- Subject: Re: [PATCH] Cleanup the callgraph (-dU) dump file.
- References: <3F70489F.90708@ford.com>
> This cleans up many little readability and whitespace issues in the
> callgraph dump files (gcc -dU) making it moderately more usable in my
> estimation.
>
> The Inline decision dump now looks like
> ----
> Deciding on inlining. Starting with 22917 insns.
>
> Inlining always_inline functions:
>
> Deciding on smaller functions:
> ...
> Considering loop_insn_emit_before with 31 insns
> Estimated growth is +525 insns.
> Found inline successors of loop_insn_emit_before: loop_insn_hoist
> Inlined into check_dbra_loop which now has 1336 insns.
> Inlined into emit_prefetch_instructions which now has 1115 insns.
> Inlined into loop_iv_add_mult_emit_before which now has 161 insns.
> Found inline predecesors of loop_insn_hoist: loop_insn_sink_or_swim
> loop_givs_r
> Not inlining into loop_insn_hoist.
> Found inline predecesors of loop_insn_sink: loop_insn_sink_or_swim
> loop_givs_re
> Inlined into loop_insn_sink which now has 34 insns.
> Inlined 10 times for a net change of +189 insns.
> ...
> Inlined 159 calls, eliminated 61 functions, 22917 insns turned to 27435
> insns.
> ----
>
> OK?
>
> Kelley Cook
>
> 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
>
> * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
> "local" to the callgraph dump. Output "after inlining" earlier.
> * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
> callgraph dumps. Correct misspellings.
> (cgraph_decide_inlining): Output number of insns before inlining.
> Output the calling function into which a function is inlined.
> (cgraph_decide_small_functions): Format dump file like always_inline.
OK, thanks!
Honza