]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Factor out the handling on scatter store having gs_info.decl
authorKewen Lin <linkw@linux.ibm.com>
Fri, 18 Aug 2023 10:00:05 +0000 (05:00 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Fri, 18 Aug 2023 10:00:05 +0000 (05:00 -0500)
commitac8d3c7c5cd210bef20195346864307660cfa950
treeae8565fcb2dac4bbd5c854eade5b5e2523581b48
parent7f8d730a563983187edb563c673d184d5bae8cf1
vect: Factor out the handling on scatter store having gs_info.decl

Similar to the existing function vect_build_gather_load_calls,
this patch is to factor out the handling on scatter store
having gs_info.decl to vect_build_scatter_store_calls which
is a new function.  It also does some minor refactoring like
moving some variables' declarations close to their uses and
restrict the scope for some of them etc.

It's a pre-patch for upcoming vectorizable_store re-structuring
for costing.

gcc/ChangeLog:

* tree-vect-stmts.cc (vect_build_scatter_store_calls): New, factor
out from ...
(vectorizable_store): ... here.
gcc/tree-vect-stmts.cc