fix SLP subgraph detection wrt fully shared lanes
authorRichard Biener <rguenther@suse.de>
Mon, 12 Oct 2020 12:29:35 +0000 (14:29 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 12 Oct 2020 12:31:33 +0000 (14:31 +0200)
commita7825bb6556da6fa991b7ea1b72e3851026dc2cd
tree6d96a74c9237e478223b7e786f8af41b4921515b
parent91d80cf4bd2827dd9c40fe6a7c719c909d79083d
fix SLP subgraph detection wrt fully shared lanes

When a VEC_PERM SLP node just permutes existing lanes this confuses
the SLP subgraph detection where I tried to elide a node-based
visited hash-map in a way that doesn't work.  Fixed by adding such.

2020-10-12  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_bb_partition_graph_r): Use visited
hash-map.
(vect_bb_partition_graph): Likewise.
gcc/tree-vect-slp.c