]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove STMT_VINFO_VEC_STMTS
authorRichard Biener <rguenther@suse.de>
Fri, 25 Jul 2025 07:50:18 +0000 (09:50 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 25 Jul 2025 10:44:55 +0000 (12:44 +0200)
commit22e5711c66a7319cd4bf28346b3b3dcda130ed75
tree815774566fe1ab95ee7e2e7cf93ac57635902295
parent735b470346bcbd2947531dc1065ee1f4f4ede050
Remove STMT_VINFO_VEC_STMTS

The following removes the last uses of STMT_VINFO_VEC_STMTS and
the vector itself.  Vector stmts are recorded in SLP nodes now.

The last use is a bit strange - it was introduced by
Richard S. in r8-6064-ga57776a1136962 and affects only
power7 and below (the re-align optimized load path).  The
check should have never been true since vect_vfa_access_size
is only ever invoked before stmt transform.  I have done
the "conservative" change of making it always true now
(so the code is now entered).  I can as well remove it, but
I wonder if you remember anything about this ...

* tree-vectorizer.h (_stmt_vec_info::vec_stmts): Remove.
(STMT_VINFO_VEC_STMTS): Likewise.
* tree-vectorizer.cc (vec_info::new_stmt_vec_info): Do not
initialize it.
(vec_info::free_stmt_vec_info): Nor free it.
* tree-vect-data-refs.cc (vect_vfa_access_size): Remove
check on STMT_VINFO_VEC_STMTS.
gcc/tree-vect-data-refs.cc
gcc/tree-vectorizer.cc
gcc/tree-vectorizer.h