]> git.ipfire.org Git - thirdparty/gcc.git/commit
Pass SLP node to promotion/demotion costing
authorRichard Biener <rguenther@suse.de>
Thu, 7 Aug 2025 12:45:52 +0000 (14:45 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 8 Aug 2025 07:05:00 +0000 (09:05 +0200)
commitf38ebe459af792e097d7923dd49dc19d79d52427
treee61cee87621567661602cdd9e76f9508f141b032
parente4678c4cf843370ce00c46810dcf7f79f8ba7be9
Pass SLP node to promotion/demotion costing

This one was forgotten.  Also constants/externals are costed explicitly
with SLP.

* tree-vect-stmts.cc (vect_model_promotion_demotion_cost): Pass
in SLP node and drop unused dr argument.  Use SLP node for
costing, drop costing of constant/external operands.
(vectorizable_conversion): Adjust.
gcc/tree-vect-stmts.cc