]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix and simplify vect_model_simple_cost
authorRichard Biener <rguenther@suse.de>
Fri, 25 Jul 2025 11:38:48 +0000 (13:38 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 25 Jul 2025 14:46:41 +0000 (16:46 +0200)
commite38c88d5deb4fd4ef103b63691d7be028a54c3dc
tree13eb09fa2d9893f70f63b94001321a9cae25f67d
parent529ae1484a992aba184509eebb71d6595768c887
Fix and simplify vect_model_simple_cost

There's no longer any call without SLP node so we don't need dts.
I also figured based on the callers that some expect to cost
more than one stmt but still N times so this changes what we cost.

* tree-vect-stmts.cc (vect_model_simple_cost): Removed code
when no SLP node is passed, remove then unused dt and ndts
parameters and fix the number of vector stmts calculation.
(vectorizable_call): Adjust.
(vectorizable_simd_clone_call): Likewise.
(vectorizable_conversion): Likewise.
(vectorizable_assignment): Likewise.
(vectorizable_shift): Likewise.
(vectorizable_operation): Likewise.
(vectorizable_condition): Likewise.
(vectorizable_comparison_1): Likewise.
gcc/tree-vect-stmts.cc