]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Simplify costing on vectorizable_scan_store
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)
commit7184d2257a0d927e6e3736ba0a169d557e673ad5
tree37fa8fe7deb9d7cd8275bfd9c7b96d476797f113
parente00820c8e5cff0c1950a200354263fe6cc13493c
vect: Simplify costing on vectorizable_scan_store

This patch is to simplify the costing on the case
vectorizable_scan_store without calling function
vect_model_store_cost any more.

I considered if moving the costing into function
vectorizable_scan_store is a good idea, for doing
that, we have to pass several variables down which
are only used for costing, and for now we just
want to keep the costing as the previous, haven't
tried to make this costing consistent with what the
transforming does, so I think we can leave it for now.

gcc/ChangeLog:

* tree-vect-stmts.cc (vectorizable_store): Adjust costing on
vectorizable_scan_store without calling vect_model_store_cost
any more.
gcc/tree-vect-stmts.cc