diff options
author | Jan Hubicka <jh@suse.cz> | 2019-11-20 16:04:34 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-11-20 15:04:34 +0000 |
commit | 516fd7cedb025b09000563cdba6214461621400d (patch) | |
tree | 61c772013cc91032ba6dcdcaffd99445d40bd10b /gcc/tracer.c | |
parent | f6fbdc385ae9fd3f07b2f5fe8b7fe2a134622be7 (diff) | |
download | gcc-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.c | 1 |
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" |