diff options
author | Richard Henderson <rth@redhat.com> | 2001-06-21 14:33:33 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-06-21 14:33:33 -0700 |
commit | ebf1c218a5e0ec70497bc428dfaa6daae3280362 (patch) | |
tree | d06b7ddc5351c6b1dd4b40017e4fd1493957eff5 /gcc | |
parent | 6dee4e5f8e5674a6420e0a6f4e75d89b21bb1e8a (diff) | |
download | gcc-ebf1c218a5e0ec70497bc428dfaa6daae3280362.zip gcc-ebf1c218a5e0ec70497bc428dfaa6daae3280362.tar.gz gcc-ebf1c218a5e0ec70497bc428dfaa6daae3280362.tar.bz2 |
flow.c (entry_exit_blocks): Initialize frequency.
* flow.c (entry_exit_blocks): Initialize frequency.
(split_block): Copy it.
(dump_flow_info): Dump it.
From-SVN: r43494
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/flow.c | 13 |
2 files changed, 15 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 035775a..45495d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-06-21 Richard Henderson <rth@redhat.com> + + * flow.c (entry_exit_blocks): Initialize frequency. + (split_block): Copy it. + (dump_flow_info): Dump it. + Thu Jun 21 22:15:10 2001 J"orn Rennecke <amylaar@redhat.com> * sh.c (barrier_align): Also recognize branch-around-a-jump-sequence @@ -204,7 +204,8 @@ struct basic_block_def entry_exit_blocks[2] NULL, /* aux */ ENTRY_BLOCK, /* index */ 0, /* loop_depth */ - 0 /* count */ + 0, /* count */ + 0 /* frequency */ }, { NULL, /* head */ @@ -218,7 +219,8 @@ struct basic_block_def entry_exit_blocks[2] NULL, /* aux */ EXIT_BLOCK, /* index */ 0, /* loop_depth */ - 0 /* count */ + 0, /* count */ + 0 /* frequency */ } }; @@ -1507,6 +1509,7 @@ split_block (bb, insn) bb->succ = new_edge; new_bb->pred = new_edge; new_bb->count = bb->count; + new_bb->frequency = bb->frequency; new_bb->loop_depth = bb->loop_depth; new_edge->src = bb; @@ -1627,6 +1630,7 @@ split_edge (edge_in) bb->pred = edge_in; bb->succ = edge_out; bb->count = edge_in->count; + /* ??? Set bb->frequency. */ edge_in->dest = bb; edge_in->flags &= ~EDGE_CRITICAL; @@ -6355,8 +6359,9 @@ dump_flow_info (file) register basic_block bb = BASIC_BLOCK (i); register edge e; - fprintf (file, "\nBasic block %d: first insn %d, last %d, loop_depth %d, count %d.\n", - i, INSN_UID (bb->head), INSN_UID (bb->end), bb->loop_depth, bb->count); + fprintf (file, "\nBasic block %d: first insn %d, last %d, loop_depth %d, count %d, freq %d.\n", + i, INSN_UID (bb->head), INSN_UID (bb->end), bb->loop_depth, + bb->count, bb->frequency); fprintf (file, "Predecessors: "); for (e = bb->pred; e; e = e->pred_next) |