This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
minor debug dump improvement
- To: rth at cygnus dot com, gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- Subject: minor debug dump improvement
- From: Jan Hubicka <jh at suse dot cz>
- Date: Fri, 22 Jun 2001 12:43:04 +0200
Hi,
two minor improvements to the debug output.
Honza
Fri Jun 22 12:38:48 CEST 2001 Jan Hubicka <jh@suse.cz>
* flow.c (dump_edge_info): Dump the probability of edge.
(combine_predictions_for_insn): Dump the basic block.
Index: flow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flow.c,v
retrieving revision 1.401
diff -c -3 -p -r1.401 flow.c
*** flow.c 2001/06/21 21:33:33 1.401
--- flow.c 2001/06/22 10:37:59
*************** dump_edge_info (file, e, do_succ)
*** 6404,6409 ****
--- 6404,6412 ----
else
fprintf (file, " %d", side->index);
+ if (e->probability)
+ fprintf (file, " [%.1f%%] ", e->probability * 100.0 / REG_BR_PROB_BASE);
+
if (e->count)
fprintf (file, " count:%d", e->count);
*** predict.c 2001/06/20 19:55:43 1.22
--- predict.c 2001/06/22 10:11:49
*************** combine_predictions_for_insn (insn, bb)
*** 205,211 ****
int best_predictor = END_PREDICTORS;
if (rtl_dump_file)
! fprintf (rtl_dump_file, "Predictions for insn %i\n", INSN_UID (insn));
/* We implement "first match" heuristics and use probability guessed
by predictor with smallest index. In future we will use better
--- 205,212 ----
int best_predictor = END_PREDICTORS;
if (rtl_dump_file)
! fprintf (rtl_dump_file, "Predictions for insn %i bb %i\n", INSN_UID (insn),
! bb->index);
/* We implement "first match" heuristics and use probability guessed
by predictor with smallest index. In future we will use better