diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-11 09:39:11 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-11 09:39:11 +0000 |
commit | 7392df293e76260a6f842ae893a8c410fa94b7ef (patch) | |
tree | 0b80eab87a8ff974cac08543ff1bb4f76eff3798 /gcc/profile.c | |
parent | 9caef960d5d09da7280ba0b8a8d1fa6d35e5d9da (diff) | |
download | gcc-7392df293e76260a6f842ae893a8c410fa94b7ef.tar.gz |
* basic-block.h (cached_make_edge, make_single_succ): New.
(make_edge): Remove first parameter.
* bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
* cfg.c (cached_make_edge): Rename from make_edge; return newly
created edge; use obstack allocation.
(make_edge, make_single_succ_edge): New.
(first_removed_edge): New static variable.
(init_flow): Initialize first_removed_edge and n_edges.
(clear_edges): Use remove_edge.
(flow_delete_block): Likewise.
(remove_edge): Add removed edges to the removed edges list.
(split_block, redirect_edge_and_branch_force, split_edge):
Use make_edge.
* cfganal.c (flow_call_edges_add): Updaet make_edge call.
(add_noreturn_fake_exit_edges): Likewise.
(connect_infinite_loops_to_exit): Liekwise.
* cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
Use cached_make_edge.
* cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
* profile.c (branch_prob): Update make_edge call.
* ssa-dce.c (ssa_eliminate_dead_code): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45540 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index d011021ce15..81737f98fe0 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -563,7 +563,7 @@ branch_prob () || insn != NEXT_INSN (bb->head)) { e = split_block (bb, PREV_INSN (insn)); - make_edge (NULL, ENTRY_BLOCK_PTR, e->dest, EDGE_FAKE); + make_edge (ENTRY_BLOCK_PTR, e->dest, EDGE_FAKE); break; } else @@ -572,7 +572,7 @@ branch_prob () be the very first instruction of function. */ if (!i) abort (); - make_edge (NULL, ENTRY_BLOCK_PTR, bb, EDGE_FAKE); + make_edge (ENTRY_BLOCK_PTR, bb, EDGE_FAKE); } } } @@ -599,14 +599,14 @@ branch_prob () if (rtl_dump_file) fprintf (rtl_dump_file, "Adding fake exit edge to bb %i\n", bb->index); - make_edge (NULL, bb, EXIT_BLOCK_PTR, EDGE_FAKE); + make_edge (bb, EXIT_BLOCK_PTR, EDGE_FAKE); } if (need_entry_edge && !have_entry_edge) { if (rtl_dump_file) fprintf (rtl_dump_file, "Adding fake entry edge to bb %i\n", bb->index); - make_edge (NULL, ENTRY_BLOCK_PTR, bb, EDGE_FAKE); + make_edge (ENTRY_BLOCK_PTR, bb, EDGE_FAKE); } } |