tree-optimization/95335 - fix SLP nodes dropped to invariant
authorRichard Biener <rguenther@suse.de>
Wed, 27 May 2020 09:18:01 +0000 (11:18 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 27 May 2020 11:08:22 +0000 (13:08 +0200)
commita5d8d86e8a72736bfd8a2ce8aa427dec896a442e
tree524f6bc72dad41a980d93dbfa733bbdf4c18c828
parente247d59274f99520657403fd31320eeea6be92c8
tree-optimization/95335 - fix SLP nodes dropped to invariant

When we drop a SLP node to invariant because we cannot vectorize it
we have to make sure to revisit it in the users.

2020-05-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95335
* tree-vect-slp.c (vect_slp_analyze_node_operations): Reset
lvisited for nodes made external.

* gcc.dg/vect/bb-slp-pr95335.c: New testcase.
gcc/testsuite/gcc.dg/vect/bb-slp-pr95335.c [new file with mode: 0644]
gcc/tree-vect-slp.c