]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not set STMT_VINFO_VECTYPE for non-dataref stmts
authorRichard Biener <rguenther@suse.de>
Mon, 11 Aug 2025 09:22:47 +0000 (11:22 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 12 Aug 2025 07:11:30 +0000 (09:11 +0200)
commit1786be14e94bf1a7806b9dc09186f021737f0227
tree70c2d5ab8c6e5991286ec56299be56851062c02a
parent5e76090d320a83bf6eeb75c6adb950939aa674e9
Do not set STMT_VINFO_VECTYPE for non-dataref stmts

Now that all STMT_VINFO_VECTYPE uses from vectorizable_* have been
pruged there's no longer a need to have STMT_VINFO_VECTYPE set.
We still rely on it being present on data-ref stmts and there it
can differ between different SLP instances when doing BB vectorization.
The following removes the setting from vect_analyze_stmt and
vect_transform_stmt.

Note the following clears STMT_VINFO_VECTYPE from pattern stmts (the
vector type should have moved to the SLP tree by this time).

* tree-vect-stmts.cc (vect_analyze_stmt): Only set
STMT_VINFO_VECTYPE for dataref SLP representatives.
Clear it for others and do not restore the original value.
(vect_transform_stmt): Likewise.
gcc/tree-vect-stmts.cc