]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Move vect_model_load_cost next to the transform in vectorizable_load
authorKewen Lin <linkw@linux.ibm.com>
Thu, 13 Jul 2023 02:23:21 +0000 (21:23 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 13 Jul 2023 04:12:15 +0000 (23:12 -0500)
commit574a1ea4406dd1dbf14e149a9b5d142f6cbdf32a
tree766de53d233cfebde0ef9d3a252b05fecad1e38f
parenta7f6e6c483bcb9888d680e47e29c4a7859a61d4f
vect: Move vect_model_load_cost next to the transform in vectorizable_load

This patch is an initial patch to move costing next to the
transform, it still adopts vect_model_load_cost for costing
but moves and duplicates it down according to the handlings
of different vect_memory_access_types, 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_load): Move and duplicate the call
to vect_model_load_cost down to some different transform paths
according to the handlings of different vect_memory_access_types.
gcc/tree-vect-stmts.cc