r278501 - in /trunk/gcc: ChangeLog bb-reorder.c...
hubicka@gcc.gnu.org
hubicka@gcc.gnu.org
Wed Nov 20 15:04:00 GMT 2019
Author: hubicka
Date: Wed Nov 20 15:04:34 2019
New Revision: 278501
URL: https://gcc.gnu.org/viewcvs?rev=278501&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/bb-reorder.c
trunk/gcc/fibonacci_heap.c
trunk/gcc/fibonacci_heap.h
trunk/gcc/tracer.c
More information about the Gcc-cvs
mailing list