]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove vectorizer finish_cost wrapper
authorRichard Biener <rguenther@suse.de>
Wed, 30 Oct 2024 12:06:08 +0000 (13:06 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 30 Oct 2024 14:43:18 +0000 (15:43 +0100)
commit8f9348361c552e4e65ef7dc3e7788ce51a5b91c3
tree731c11a263c59340a5c16143a5dbd328786a98ff
parent875279ff3ee3b4135401286b8378087a24fd0f8d
Remove vectorizer finish_cost wrapper

The inline function wraps the vector_cost class API and no longer is
a good representation of the query style of that class which makes it
also difficult to extend.

* tree-vectorizer.h (finish_cost): Inline everywhere and remove.
* tree-vect-loop.cc (vect_estimate_min_profitable_iters):
Inline finish_cost.
* tree-vect-slp.cc (vect_bb_vectorization_profitable_p): Likewise.
gcc/tree-vect-loop.cc
gcc/tree-vect-slp.cc
gcc/tree-vectorizer.h