diff options
author | Tamar Christina <tamar.christina@arm.com> | 2021-01-11 09:58:36 +0000 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2021-01-11 09:58:36 +0000 |
commit | 0c18faac3fb407d182dfa82426d1be7cce587926 (patch) | |
tree | 375cf02137d003b016c61e86965888bd99ccdf54 /gcc/tree-ssa-loop-prefetch.c | |
parent | bd4298e1927f6c519d5b7829023b1db7e64592e6 (diff) | |
download | gcc-0c18faac3fb407d182dfa82426d1be7cce587926.zip gcc-0c18faac3fb407d182dfa82426d1be7cce587926.tar.gz gcc-0c18faac3fb407d182dfa82426d1be7cce587926.tar.bz2 |
slp: upgrade complex add to new format and fix memory leaks
This fixes a memory leak in complex_add_pattern because I was not calling
vect_free_slp_tree when dissolving one side of the TWO_OPERANDS nodes.
Secondly it also upgrades the class to the new inteface required by the other
patterns.
gcc/ChangeLog:
* tree-vect-slp-patterns.c (class complex_pattern,
class complex_add_pattern): Add parameters to matches.
(complex_add_pattern::build): Free memory.
(complex_add_pattern::matches): Move validation end of match.
(complex_add_pattern::recognize): Likewise.
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.c')
0 files changed, 0 insertions, 0 deletions