diff options
author | Richard Biener <rguenther@suse.de> | 2025-05-13 09:50:36 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2025-05-14 18:48:56 +0200 |
commit | b4b4ee28ce60f4f85b7955fb1df249d67d26286d (patch) | |
tree | a744e91376289ee339c3d786af287f66470a23fb /gcc/fortran/dump-parse-tree.cc | |
parent | 991adf8b18c3fa03eff6cfbf396d9a15ef17f93c (diff) | |
download | gcc-b4b4ee28ce60f4f85b7955fb1df249d67d26286d.zip gcc-b4b4ee28ce60f4f85b7955fb1df249d67d26286d.tar.gz gcc-b4b4ee28ce60f4f85b7955fb1df249d67d26286d.tar.bz2 |
Use vectype from SLP node for vect_get_{load,store}_cost if possible
The vect_get_{load,store}_cost API is used from both vectorizable_*
where we've done SLP analysis and from alignment peeling analysis
with is done before this and thus only stmt_vec_infos are available.
The following patch makes sure we pick the vector type relevant
for costing from the SLP node when available.
* tree-vect-stmts.cc (vect_get_store_cost): Compute vectype based
on whether we got SLP node or stmt_vec_info and use the full
record_stmt_cost API.
(vect_get_load_cost): Likewise.
Diffstat (limited to 'gcc/fortran/dump-parse-tree.cc')
0 files changed, 0 insertions, 0 deletions