diff options
author | Jeffrey A Law <law@cygnus.com> | 1999-11-07 00:36:35 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-11-06 17:36:35 -0700 |
commit | 092ae4ba981a89701458541198d8c865601a08d8 (patch) | |
tree | 94fe489fb7140cdc9aa35fd9eb02e59df99a88c9 /gcc/haifa-sched.c | |
parent | ea1fd42450d3cd96ae03002c3436134c49afc958 (diff) | |
download | gcc-092ae4ba981a89701458541198d8c865601a08d8.zip gcc-092ae4ba981a89701458541198d8c865601a08d8.tar.gz gcc-092ae4ba981a89701458541198d8c865601a08d8.tar.bz2 |
gcse.c (post_dominators): Kill.
* 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.
From-SVN: r30437
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 305a1455..a4fdd75 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -6965,7 +6965,7 @@ schedule_insns (dump_file) { int_list_ptr *s_preds, *s_succs; int *num_preds, *num_succs; - sbitmap *dom, *pdom; + sbitmap *dom; s_preds = (int_list_ptr *) xmalloc (n_basic_blocks * sizeof (int_list_ptr)); @@ -6974,7 +6974,6 @@ schedule_insns (dump_file) num_preds = (int *) xmalloc (n_basic_blocks * sizeof (int)); num_succs = (int *) xmalloc (n_basic_blocks * sizeof (int)); dom = sbitmap_vector_alloc (n_basic_blocks, n_basic_blocks); - pdom = sbitmap_vector_alloc (n_basic_blocks, n_basic_blocks); /* The scheduler runs after flow; therefore, we can't blindly call back into find_basic_blocks since doing so could invalidate the @@ -6993,7 +6992,7 @@ schedule_insns (dump_file) /* Compute the dominators and post dominators. We don't currently use post dominators, but we should for speculative motion analysis. */ - compute_dominators (dom, pdom, s_preds, s_succs); + compute_flow_dominators (dom, NULL); /* build_control_flow will return nonzero if it detects unreachable blocks or any other irregularity with the cfg which prevents @@ -7010,7 +7009,6 @@ schedule_insns (dump_file) to using the cfg code in flow.c. */ free_bb_mem (); free (dom); - free (pdom); free (s_preds); free (s_succs); free (num_preds); |