tree-optimization/101242 - fix reverse graph entry detection
authorRichard Biener <rguenther@suse.de>
Tue, 29 Jun 2021 07:33:24 +0000 (09:33 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 29 Jun 2021 08:34:57 +0000 (10:34 +0200)
commitc01760bc548ba79bc9ac15168b27fe7aabcb19ae
tree72f17a6918641c0263b9162c0eca87376cf7e185
parentdc6866b033b1b85f690bf32c0dae7d787cbf58f0
tree-optimization/101242 - fix reverse graph entry detection

This avoids detecting random unrelated nodes as possible entries
to not backwards reachable regions of the SLP graph.  Instead
explicitely add the problematic nodes.

This temporary XFAILs gcc.dg/vect/pr67790.c until I get the
permute propagation adjusted to when it needs more than one
optimistic iteration.

2021-06-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/101242
* tree-vect-slp.c (vect_slp_build_vertices): Force-add
PHIs with not represented initial values as leafs.

* gcc.dg/vect/bb-slp-pr101242.c: New testcase.
* gcc.dg/vect/pr67790.c: XFAIL scan for zero VEC_PERM_EXPR.
gcc/testsuite/gcc.dg/vect/bb-slp-pr101242.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr67790.c
gcc/tree-vect-slp.c