diff options
author | Richard Biener <rguenther@suse.de> | 2024-12-03 08:52:48 +0100 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-12-03 12:29:13 +0100 |
commit | d4f3c3efc669afe6e270344ff73c7471fea67ce7 (patch) | |
tree | ac9dacef752892688cd868c6712b8205f560afcb /libstdc++-v3/include/std/numeric | |
parent | d203f4cb968a1dc45c7fcd1bf5d7cd485ca6f510 (diff) | |
download | gcc-d4f3c3efc669afe6e270344ff73c7471fea67ce7.zip gcc-d4f3c3efc669afe6e270344ff73c7471fea67ce7.tar.gz gcc-d4f3c3efc669afe6e270344ff73c7471fea67ce7.tar.bz2 |
Use the number of relevant stmts to limit SLP build
The following removes scalar stmt counting from loop vectorization
and using that as base to limit both the SLP tree final size and
discovery. Instead use the number of relevant stmts for that
which is conveniently the number of stmt_vec_infos we create which
in turn includes things like pattern stmts.
PR tree-optimization/117874
* tree-vectorizer.h (vec_info_shared::n_stmts): Remove.
(LOOP_VINFO_N_STMTS): Likewise.
* tree-vectorizer.cc (vec_info_shared::vec_info_shared): Adjust.
* tree-vect-loop.cc (vect_get_datarefs_in_loop): Do not
count stmts.
(vect_analyze_loop_2): Adjust. Pass stmt_vec_info.length ()
to vect_analyze_slp as SLP tree size limit.
Diffstat (limited to 'libstdc++-v3/include/std/numeric')
0 files changed, 0 insertions, 0 deletions