]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid representing SLP mask by scalar op
authorRichard Biener <rguenther@suse.de>
Fri, 1 Aug 2025 11:06:51 +0000 (13:06 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 1 Aug 2025 12:17:52 +0000 (14:17 +0200)
commit95aecacc8d9c40100f01433ba214103e756dc984
tree117fc3351ba5a1c049e19380c29c59077314bf2a
parentc2b11b7471807139d8068bf5ecf5378e00d2de47
Avoid representing SLP mask by scalar op

The following removes the scalar mask output from vect_check_scalar_mask
and deals with the fallout, eliminating uses of it.  That's mostly
replacing checks on 'mask' by checks on 'mask_node' but also realizing
PR121349 and fixing that up a bit in check_load_store_for_partial_vectors.

PR tree-optimization/121349
* tree-vect-stmts.cc (check_load_store_for_partial_vectors):
Get full SLP mask, reduce to uniform scalar_mask for further
processing if possible.
(vect_check_scalar_mask): Remove scalar mask output, remove
code conditional on slp_mask.
(vectorizable_call): Adjust.
(check_scan_store): Get and check SLP mask.
(vectorizable_store): Eliminate scalar mask variable.
(vectorizable_load): Likewise.
gcc/tree-vect-stmts.cc