tree-optimization/107254 - check and support live lanes from permutes
authorRichard Biener <rguenther@suse.de>
Fri, 14 Oct 2022 09:14:59 +0000 (11:14 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 14 Oct 2022 10:00:30 +0000 (12:00 +0200)
commit9ed4a849afb5b18b462bea311e7eee454c2c9f68
tree751e41f4d2918c2d1b561ee04539e8d2de72fe89
parente39b170695a161feba7401b7d21d824db9ee1f8f
tree-optimization/107254 - check and support live lanes from permutes

The following fixes an omission from adding SLP permute nodes which
is live lanes originating from those.  We have to check that we
can extract the lane and have to actually code generate them.

PR tree-optimization/107254
* tree-vect-slp.cc (vect_slp_analyze_node_operations_1):
For permutes also analyze live lanes.
(vect_schedule_slp_node): For permutes also code generate
live lane extracts.

* gfortran.dg/vect/pr107254.f90: New testcase.
gcc/testsuite/gfortran.dg/vect/pr107254.f90 [new file with mode: 0644]
gcc/tree-vect-slp.cc