summaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-07 00:36:35 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-07 00:36:35 +0000
commit683035e9448243c271159b6cb1ce0500a48e92c2 (patch)
tree94fe489fb7140cdc9aa35fd9eb02e59df99a88c9 /gcc/gcse.c
parent96e5d0ea9144258ef4a4548acb594891506284d3 (diff)
downloadgcc-683035e9448243c271159b6cb1ce0500a48e92c2.tar.gz
* gcse.c (post_dominators): Kill.
(alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators. (compute_code_hoist_data): Use compute_flow_dominators. Do not pass in a pdom array since we do not need pdoms. * haifa-sched.c (schedule_insns): Similarly. * flow.c (compute_dominators): Remove dead function. (compute_flow_dominators): Do not compute doms or pdoms if the caller does not request them. Split up loop to build doms and pdoms. Use a worklist to compute doms and pdoms. * basic-block.h (compute_dominators): Remove prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30437 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 067cfbfdd91..69af46346b9 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -5330,7 +5330,6 @@ static sbitmap *hoist_exprs;
/* Dominator bitmaps. */
static sbitmap *dominators;
-static sbitmap *post_dominators;
/* ??? We could compute post dominators and run this algorithm in
reverse to to perform tail merging, doing so would probably be
@@ -5355,7 +5354,6 @@ alloc_code_hoist_mem (n_blocks, n_exprs)
transpout = sbitmap_vector_alloc (n_blocks, n_exprs);
dominators = sbitmap_vector_alloc (n_blocks, n_blocks);
- post_dominators = sbitmap_vector_alloc (n_blocks, n_blocks);
}
/* Free vars used for code hoisting analysis. */
@@ -5373,7 +5371,6 @@ free_code_hoist_mem ()
free (transpout);
free (dominators);
- free (post_dominators);
}
/* Compute the very busy expressions at entry/exit from each block.
@@ -5418,7 +5415,7 @@ compute_code_hoist_data ()
compute_local_properties (transp, comp, antloc, 0);
compute_transpout ();
compute_code_hoist_vbeinout ();
- compute_flow_dominators (dominators, post_dominators);
+ compute_flow_dominators (dominators, NULL);
if (gcse_file)
fprintf (gcse_file, "\n");
}