From 6083578b4123a41fc9001dbb27ea568c3d442ad4 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 11 May 2012 14:07:38 +0000 Subject: tree-pass.h (pass_rest_of_compilation, [...]): Remove. 2012-05-11 Richard Guenther * tree-pass.h (pass_rest_of_compilation, pass_all_optimizations, pass_postreload, pass_all_early_optimizations): Remove. * passes.c (pass_all_optimizations, pass_postreload, pass_all_early_optimizations): Make static. (pass_rest_of_compilation): Likewise. Make it an RTL_PASS. * tree-phinodes.c (init_phinodes, fini_phinodes): Remove. * tree-ssa.c (init_tree_ssa): Do not call init_phinodes. (delete_tree_ssa): Do not call fini_phinodes. * tree-flow.h (init_phinodes, fini_phinodes): Remove. From-SVN: r187407 --- gcc/tree-phinodes.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'gcc/tree-phinodes.c') diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c index bac9b52..bd0bde3 100644 --- a/gcc/tree-phinodes.c +++ b/gcc/tree-phinodes.c @@ -44,10 +44,6 @@ along with GCC; see the file COPYING3. If not see garbage collector. Similar results have been seen on a wider variety of tests (such as the compiler itself). - Right now we maintain our free list on a per-function basis. It may - or may not make sense to maintain the free list for the duration of - a compilation unit. - We could also use a zone allocator for these objects since they have a very well defined lifetime. If someone wants to experiment with that this is the place to try it. @@ -87,30 +83,6 @@ unsigned int phi_nodes_reused; unsigned int phi_nodes_created; #endif -/* Initialize management of PHIs. */ - -void -init_phinodes (void) -{ - int i; - - for (i = 0; i < NUM_BUCKETS - 2; i++) - free_phinodes[i] = NULL; - free_phinode_count = 0; -} - -/* Finalize management of PHIs. */ - -void -fini_phinodes (void) -{ - int i; - - for (i = 0; i < NUM_BUCKETS - 2; i++) - free_phinodes[i] = NULL; - free_phinode_count = 0; -} - /* Dump some simple statistics regarding the re-use of PHI nodes. */ #ifdef GATHER_STATISTICS -- cgit v1.1