re PR tree-optimization/87105 (Autovectorization [X86, SSE2, AVX2, DoublePrecision])
authorRichard Biener <rguenther@suse.de>
Fri, 26 Oct 2018 07:38:59 +0000 (07:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 26 Oct 2018 07:38:59 +0000 (07:38 +0000)
commita1f072e2441c58f6a486f90bb9a32bd5f6c51cb4
tree9d618aa607519185f0bde590ce1b6b862c7ff3b5
parent74ca1c01d02e548f32aa26f9a887dcc0730703fb
re PR tree-optimization/87105 (Autovectorization [X86, SSE2, AVX2, DoublePrecision])

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

PR tree-optimization/87105
* tree-vectorizer.h (_slp_tree::refcnt): New member.
* tree-vect-slp.c (vect_free_slp_tree): Decrement and honor
refcnt.
(vect_create_new_slp_node): Initialize refcnt to one.
(bst_traits): Move.
(scalar_stmts_set_t, bst_fail): Remove.
(vect_build_slp_tree_2): Add bst_map argument and adjust calls.
(vect_build_slp_tree): Add bst_map argument and lookup
already created SLP nodes.
(vect_print_slp_tree): Handle a SLP graph, print SLP node
addresses.
(vect_slp_rearrange_stmts): Handle a SLP graph.
(vect_analyze_slp_instance): Adjust and free SLP nodes from
the CSE map.  Fix indenting.
(vect_schedule_slp_instance): Add short-cut.

* g++.dg/vect/slp-pr87105.cc: Adjust.
* gcc.dg/torture/20181024-1.c: New testcase.
* g++.dg/opt/20181025-1.C: Likewise.

From-SVN: r265522
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/20181025-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/vect/slp-pr87105.cc
gcc/testsuite/gcc.dg/torture/20181024-1.c [new file with mode: 0644]
gcc/tree-vect-slp.c
gcc/tree-vectorizer.h