]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Move vect_model_store_cost next to the transform in vectorizable_store
authorKewen Lin <linkw@linux.ibm.com>
Thu, 12 Oct 2023 05:04:56 +0000 (00:04 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 12 Oct 2023 05:04:56 +0000 (00:04 -0500)
commit3bf2366685b24108674d12d7cf91b269e9ee2161
tree684e01ebe51d650893ff011728204f9c2cd5e1a7
parent32207b15b7218a7563a36efae4845c2ac8513562
vect: Move vect_model_store_cost next to the transform in vectorizable_store

This patch is an initial patch to move costing next to the
transform, it still adopts vect_model_store_cost for costing
but moves and duplicates it down according to the handlings
of different vect_memory_access_types or some special
handling need, hope it can make the subsequent patches easy
to review.  This patch should not have any functional
changes.

gcc/ChangeLog:

* tree-vect-stmts.cc (vectorizable_store): Move and duplicate the call
to vect_model_store_cost down to some different transform paths
according to the handlings of different vect_memory_access_types
or some special handling need.
gcc/tree-vect-stmts.cc