diff options
author | Jan Hubicka <jh@suse.cz> | 2001-09-11 11:39:11 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-09-11 09:39:11 +0000 |
commit | 7ded4467c9ee286111320967832db758d71acf4c (patch) | |
tree | 0b80eab87a8ff974cac08543ff1bb4f76eff3798 /gcc/ssa-dce.c | |
parent | 30102605e710a95f8cb00ddd14303d7fcc284fae (diff) | |
download | gcc-7ded4467c9ee286111320967832db758d71acf4c.zip gcc-7ded4467c9ee286111320967832db758d71acf4c.tar.gz gcc-7ded4467c9ee286111320967832db758d71acf4c.tar.bz2 |
basic-block.h (cached_make_edge, [...]): New.
* 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.
From-SVN: r45540
Diffstat (limited to 'gcc/ssa-dce.c')
-rw-r--r-- | gcc/ssa-dce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ssa-dce.c b/gcc/ssa-dce.c index de76321..797a01c 100644 --- a/gcc/ssa-dce.c +++ b/gcc/ssa-dce.c @@ -707,7 +707,7 @@ ssa_eliminate_dead_code () /* Create an edge from this block to the post dominator. What about the PHI nodes at the target? */ - make_edge (NULL, bb, pdom_bb, 0); + make_edge (bb, pdom_bb, 0); /* Third, transform this insn into an unconditional jump to the label for the immediate postdominator. */ |