tree-optimization/101202 - fix ICE with failed backedge SLP nodes
authorRichard Biener <rguenther@suse.de>
Fri, 25 Jun 2021 07:20:56 +0000 (09:20 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 25 Jun 2021 10:03:23 +0000 (12:03 +0200)
commit55a1546b73b60d2601f35671ba9e8f12a52a7b77
tree2791ffb3fe38afe97eca6b15207a6f193389af8c
parent05516402f8eb8ec282a13fa1e38d9f9c5b3dd3e5
tree-optimization/101202 - fix ICE with failed backedge SLP nodes

This fixes an ICE with failed backedge SLP nodes still in the graph
while doing permute optimization by explicitely handling those.

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

PR tree-optimization/101202
* tree-vect-slp.c (vect_optimize_slp): Explicitely handle
failed nodes.

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