aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-11-07 00:36:35 +0000
committerJeff Law <law@gcc.gnu.org>1999-11-06 17:36:35 -0700
commit092ae4ba981a89701458541198d8c865601a08d8 (patch)
tree94fe489fb7140cdc9aa35fd9eb02e59df99a88c9 /gcc/gcse.c
parentea1fd42450d3cd96ae03002c3436134c49afc958 (diff)
downloadgcc-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/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 067cfbf..69af463 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");
}