aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-12-02 14:43:59 +0100
committerRichard Biener <rguenther@suse.de>2020-12-02 15:55:18 +0100
commitfeb93adf76eda52385a73eb57c5bef7c870a2564 (patch)
treeab341ac008fc8dbb5f504d4850d989a1f09bf142 /gcc/gimple-range.cc
parentbad800c03d00a57fc21718c160459d9a1e8d747a (diff)
downloadgcc-feb93adf76eda52385a73eb57c5bef7c870a2564.zip
gcc-feb93adf76eda52385a73eb57c5bef7c870a2564.tar.gz
gcc-feb93adf76eda52385a73eb57c5bef7c870a2564.tar.bz2
tree-optimization/97630 - fix SLP cycle memory leak
This fixes SLP cycles leaking memory by maintaining a double-linked list of allocatd SLP nodes we can zap when we free the alloc pool. 2020-12-02 Richard Biener <rguenther@suse.de> PR tree-optimization/97630 * tree-vectorizer.h (_slp_tree::next_node, _slp_tree::prev_node): New. (vect_slp_init): Declare. (vect_slp_fini): Likewise. * tree-vectorizer.c (vectorize_loops): Call vect_slp_init/fini. (pass_slp_vectorize::execute): Likewise. * tree-vect-slp.c (vect_slp_init): New. (vect_slp_fini): Likewise. (slp_first_node): New global. (_slp_tree::_slp_tree): Link node into the SLP tree list. (_slp_tree::~_slp_tree): Delink node from the SLP tree list.
Diffstat (limited to 'gcc/gimple-range.cc')
0 files changed, 0 insertions, 0 deletions