]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Adjust vectorizable_store costing on VMAT_CONTIGUOUS_PERMUTE
authorKewen Lin <linkw@linux.ibm.com>
Thu, 12 Oct 2023 05:04:57 +0000 (00:04 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 12 Oct 2023 05:04:57 +0000 (00:04 -0500)
commit0a96eedb3477be23391f54cb1f2302fe67641188
tree504a0718ed9305888e61e75c4f3df976d76f5f5c
parent6a88202e5a43f7b9cafd9fbfca74e3c53ea0f911
vect: Adjust vectorizable_store costing on VMAT_CONTIGUOUS_PERMUTE

This patch adjusts the cost handling on VMAT_CONTIGUOUS_PERMUTE
in function vectorizable_store.  We don't call function
vect_model_store_cost for it any more.  It's the case of
interleaving stores, so it skips all stmts excepting for
first_stmt_info, consider the whole group when costing
first_stmt_info.  This patch shouldn't have any functional
changes.

gcc/ChangeLog:

* tree-vect-stmts.cc (vect_model_store_cost): Assert it will never
get VMAT_CONTIGUOUS_PERMUTE and remove VMAT_CONTIGUOUS_PERMUTE related
handlings.
(vectorizable_store): Adjust the cost handling on
VMAT_CONTIGUOUS_PERMUTE without calling vect_model_store_cost.
gcc/tree-vect-stmts.cc