diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2004-09-11 21:14:39 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-09-11 21:14:39 +0000 |
commit | a38b644be61f5131051591c489f343b6008e555e (patch) | |
tree | 02ed409cddb73dd4e5bef2d9859d272ef3ce4744 /gcc/tree-ssa-pre.c | |
parent | 68a97276d689ed61be616643316bc9be453e412b (diff) | |
download | gcc-a38b644be61f5131051591c489f343b6008e555e.zip gcc-a38b644be61f5131051591c489f343b6008e555e.tar.gz gcc-a38b644be61f5131051591c489f343b6008e555e.tar.bz2 |
tree.c (tree_code_size): New function, bulk of code from tree_size.
* tree.c (tree_code_size): New function, bulk of code from tree_size.
(tree_size, make_node): Use it.
* tree-ssa-pre.c (init_pre): Use it.
* tree.h: Prototype it.
From-SVN: r87371
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r-- | gcc/tree-ssa-pre.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index b322755..bf332f4 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -1905,7 +1905,6 @@ eliminate (void) static void init_pre (void) { - size_t tsize; basic_block bb; connect_infinite_loops_to_exit (); @@ -1937,13 +1936,12 @@ init_pre (void) sizeof (struct value_set_node), 30); calculate_dominance_info (CDI_POST_DOMINATORS); calculate_dominance_info (CDI_DOMINATORS); - tsize = tree_size (build (PLUS_EXPR, void_type_node, NULL_TREE, NULL_TREE)); - binary_node_pool = create_alloc_pool ("Binary tree nodes", tsize, 30); - tsize = tree_size (build1 (NEGATE_EXPR, void_type_node, NULL_TREE)); - unary_node_pool = create_alloc_pool ("Unary tree nodes", tsize, 30); - tsize = tree_size (build (COMPONENT_REF, void_type_node, NULL_TREE, - NULL_TREE, NULL_TREE)); - reference_node_pool = create_alloc_pool ("Reference tree nodes", tsize, 30); + binary_node_pool = create_alloc_pool ("Binary tree nodes", + tree_code_size (PLUS_EXPR), 30); + unary_node_pool = create_alloc_pool ("Unary tree nodes", + tree_code_size (NEGATE_EXPR), 30); + reference_node_pool = create_alloc_pool ("Reference tree nodes", + tree_code_size (COMPONENT_REF), 30); FOR_ALL_BB (bb) { EXP_GEN (bb) = set_new (true); |