]> git.ipfire.org Git - thirdparty/gcc.git/commit
Restore STMT_VINFO_VECTYPE during analysis, set to NULL for all stmts
authorRichard Biener <rguenther@suse.de>
Mon, 1 Sep 2025 13:49:59 +0000 (15:49 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 2 Sep 2025 10:53:08 +0000 (12:53 +0200)
commit3f868fb150957e0510d37d5f39effbddc2f8a4f1
treef56d58a7bd46a820fe2279b28823d6ce102b795e
parent861b7c054e5f356722e6e1a1b043de5d7a412499
Restore STMT_VINFO_VECTYPE during analysis, set to NULL for all stmts

The following makes vect_analyze_stmt call vectorizable_* with all
STMT_VINFO_VECTYPE NULL_TREE but restores the value for eventual
iteration with single-lane SLP.  It clears it for every stmt during
vect_transform_stmt.

* tree-vect-stmts.cc (vect_transform_stmt): Clear
STMT_VINFO_VECTYPE for all stmts.
(vect_analyze_stmt): Likewise.  But restore at the end again.
gcc/tree-vect-stmts.cc