Re: Optimize fibonacci heap allocations

2019-11-21 Thread Richard Biener
On Wed, 20 Nov 2019, Jan Hubicka wrote: > Hi, > sadly this patch seems to trigger false positive > ../../gcc/vec.h:311:10: error: attempt to free a non-heap object ???@Xa???@Y > [-Werror=free-nonheap-object] > > which is about vec destructor freeing heap allocated memory if the > vector was ever

Re: Optimize fibonacci heap allocations

2019-11-20 Thread Jan Hubicka
Hi, sadly this patch seems to trigger false positive ../../gcc/vec.h:311:10: error: attempt to free a non-heap object �@Xa�@Y [-Werror=free-nonheap-object] which is about vec destructor freeing heap allocated memory if the vector was ever resized from hits stack allocated place. In this case it

Re: Optimize fibonacci heap allocations

2019-11-20 Thread Richard Biener
On Wed, 20 Nov 2019, Jan Hubicka wrote: > Hi, > since inliner got faster malloc overhead starts to show up in profiles. > This patch eliminates a lot of malloc/free traffic by putting fibonaci > heaps nodes into pool allocators. > > It also fixes a silly issue with constant sized vector not being