aboutsummaryrefslogtreecommitdiff
path: root/gcc/tracer.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2019-11-20 16:04:34 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-11-20 15:04:34 +0000
commit516fd7cedb025b09000563cdba6214461621400d (patch)
tree61c772013cc91032ba6dcdcaffd99445d40bd10b /gcc/tracer.c
parentf6fbdc385ae9fd3f07b2f5fe8b7fe2a134622be7 (diff)
downloadgcc-516fd7cedb025b09000563cdba6214461621400d.zip
gcc-516fd7cedb025b09000563cdba6214461621400d.tar.gz
gcc-516fd7cedb025b09000563cdba6214461621400d.tar.bz2
Add pool_allocator for fibonaci heaps.
* fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap): Add allocator parameter. (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction. (fibonacci_heap<K,V>::m_allocator): New. (fibonacci_heap<K,V>::m_own_allocator): New. (fibonacci_heap<K,V>::insert): Use allocator. (fibonacci_heap<K,V>::extract_min): Likewise. (fibonacci_heap<K,V>::union_with): Assert that both heaps share allocator. (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector on stack. * fibonacci_heap.c: Include alloc-pool (test_empty_heap): Initialize allocator. (test_union): Likewise. * bb-reorder.c: Include alloc-pool.h. * tracer.c: Inlclude alloc-pool.h. From-SVN: r278501
Diffstat (limited to 'gcc/tracer.c')
-rw-r--r--gcc/tracer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tracer.c b/gcc/tracer.c
index 4ee3fef..7db0d28 100644
--- a/gcc/tracer.c
+++ b/gcc/tracer.c
@@ -49,6 +49,7 @@
#include "tree-ssa.h"
#include "tree-inline.h"
#include "cfgloop.h"
+#include "alloc-pool.h"
#include "fibonacci_heap.h"
#include "tracer.h"