Simplify intereaved store vectorization processing
commit2c27600fa79431576f47d55b9ed7b2f4790def67
authorRichard Biener <rguenther@suse.de>
Tue, 22 Aug 2023 12:28:00 +0000 (22 14:28 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 22 Aug 2023 12:28:00 +0000 (22 14:28 +0200)
tree001f1b66cf7e0e6cea7b1f509fa1db13f0a03b15
parent9e5b47b457088114698a64dc6477335cecbf8b19
Simplify intereaved store vectorization processing

When doing interleaving we perform code generation when visiting the
last store of a chain.  We keep track of this via DR_GROUP_STORE_COUNT,
the following localizes this to the caller of vectorizable_store,
also avoing redundant non-processing of the other stores.

* tree-vect-stmts.cc (vectorizable_store): Do not bump
DR_GROUP_STORE_COUNT here.  Remove early out.
(vect_transform_stmt): Only call vectorizable_store on
the last element of an interleaving chain.
gcc/tree-vect-stmts.cc