aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.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/function.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/function.c')
0 files changed, 0 insertions, 0 deletions