]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove the mixed stmt_vec_info/SLP node record_stmt_cost overload
authorRichard Biener <rguenther@suse.de>
Tue, 13 May 2025 08:08:36 +0000 (10:08 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 14 May 2025 16:49:22 +0000 (18:49 +0200)
commitc4412f9f9177ee74d48963caf4b7c596451cba83
treee0a13de6a5c3498521e0346c3fd0a9d18525080c
parentb4b4ee28ce60f4f85b7955fb1df249d67d26286d
Remove the mixed stmt_vec_info/SLP node record_stmt_cost overload

The following changes the record_stmt_cost calls in
vectorizable_load/store to only pass the SLP node when costing
vector stmts.  For now we'll still pass the stmt_vec_info,
determined from SLP_TREE_REPRESENTATIVE, so this merely cleans up
the API.

* tree-vectorizer.h (record_stmt_cost): Remove mixed
stmt_vec_info/SLP node inline overload.
* tree-vect-stmts.cc (vectorizable_store): For costing
vector stmts only pass SLP node to record_stmt_cost.
(vectorizable_load): Likewise.
gcc/tree-vect-stmts.cc
gcc/tree-vectorizer.h