aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-01-29 12:08:04 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-01-29 12:08:04 +0000
commit26af0046ffc038ea5ee541c1a87ea6dec91c9337 (patch)
tree03e19652cc4cef48935d893ecc97c4bf064f8049 /gcc/cse.c
parent40d64b5a951d6b2f48614eef5631506710b7a535 (diff)
downloadgcc-26af0046ffc038ea5ee541c1a87ea6dec91c9337.zip
gcc-26af0046ffc038ea5ee541c1a87ea6dec91c9337.tar.gz
gcc-26af0046ffc038ea5ee541c1a87ea6dec91c9337.tar.bz2
cse.c (n_elements_made, [...]): Remove.
* cse.c (n_elements_made, max_elements_made): Remove. (insert): Don't touch n_elements_made. (cse_main): Don't touch n_elements_made or max_elements_made. From-SVN: r94407
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 762c0c9..427ab0b 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -559,15 +559,6 @@ static struct table_elt *table[HASH_SIZE];
static struct table_elt *free_element_chain;
-/* Number of `struct table_elt' structures made so far for this function. */
-
-static int n_elements_made;
-
-/* Maximum value `n_elements_made' has had so far in this compilation
- for functions previously processed. */
-
-static int max_elements_made;
-
/* Set to the cost of a constant pool reference if one was found for a
symbolic constant. If this was found, it means we should try to
convert constants into constant pool entries if they don't fit in
@@ -1493,10 +1484,7 @@ insert (rtx x, struct table_elt *classp, unsigned int hash, enum machine_mode mo
if (elt)
free_element_chain = elt->next_same_hash;
else
- {
- n_elements_made++;
- elt = xmalloc (sizeof (struct table_elt));
- }
+ elt = xmalloc (sizeof (struct table_elt));
elt->exp = x;
elt->canon_exp = NULL_RTX;
@@ -6725,10 +6713,6 @@ cse_main (rtx f, int nregs, FILE *file)
reg_eqv_table = xmalloc (nregs * sizeof (struct reg_eqv_elem));
- /* Reset the counter indicating how many elements have been made
- thus far. */
- n_elements_made = 0;
-
/* Find the largest uid. */
max_uid = get_max_uid ();
@@ -6813,9 +6797,6 @@ cse_main (rtx f, int nregs, FILE *file)
#endif
}
- if (max_elements_made < n_elements_made)
- max_elements_made = n_elements_made;
-
/* Clean up. */
end_alias_analysis ();
free (uid_cuid);