Move SLP nodes to an alloc-pool
authorRichard Biener <rguenther@suse.de>
Mon, 26 Oct 2020 15:47:17 +0000 (16:47 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 27 Oct 2020 07:43:06 +0000 (08:43 +0100)
commit83220838dd6f7701ca264347c934b12de7703b42
treef04fbf29e18c88965d9ea2d3f49d98b72486e371
parent119295372f3717e78edd43a8ae1a2003d0fcc0e6
Move SLP nodes to an alloc-pool

This introduces a global alloc-pool for SLP nodes to reduce overhead
on SLP allocation churn which will get worse and to eventually release
SLP cycles which will retain a refcount of one and thus are never
freed at the moment.

2020-10-26  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (slp_tree_pool): Declare.
(_slp_tree::operator new): Likewise.
(_slp_tree::operator delete): Likewise.
* tree-vectorizer.c (vectorize_loops): Allocate and free the
slp_tree_pool.
(pass_slp_vectorize::execute): Likewise.
* tree-vect-slp.c (slp_tree_pool): Define.
(_slp_tree::operator new): Likewise.
(_slp_tree::operator delete): Likewise.
gcc/tree-vect-slp.c
gcc/tree-vectorizer.c
gcc/tree-vectorizer.h