tree-optimization/109469 - SLP with returns-twice region start
authorRichard Biener <rguenther@suse.de>
Tue, 11 Apr 2023 14:06:12 +0000 (16:06 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 12 Apr 2023 06:48:23 +0000 (08:48 +0200)
commit2d7ad38707e1fd71193d440198cc0726092b9015
tree91e801925d680b0c6030a8e4913d1009b8882c84
parent6e3e708dbadaae7b504af7fc4410015624793f02
tree-optimization/109469 - SLP with returns-twice region start

The following avoids an SLP region starting with a returns-twice
call where we cannot insert stmts at the head.

PR tree-optimization/109469
* tree-vect-slp.cc (vect_slp_function): Skip region starts with
a returns-twice call.

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