Split code out of vect_transform_slp_perm_load
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Aug 2022 14:43:46 +0000 (15:43 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Aug 2022 14:43:46 +0000 (15:43 +0100)
commit5551501e84dd51b569801c0e52b24f9e30124166
tree543ac794d4dd8c1203d46e2aba7d696239baad48
parent5edc67b773372bf013f98a357912381d99de65f5
Split code out of vect_transform_slp_perm_load

Similarly to the previous vectorizable_slp_permutation patch,
this one splits out the main part of vect_transform_slp_perm_load
so that a later patch can test a permutation without constructing
a node for it.

Also fixes a lingering use of STMT_VINFO_VECTYPE.

gcc/
* tree-vect-slp.cc (vect_transform_slp_perm_load_1): Split out from...
(vect_transform_slp_perm_load): ...here.  Use SLP_TREE_VECTYPE instead
of STMT_VINFO_VECTYPE.
gcc/tree-vect-slp.cc