]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix disambiguation against .MASK_STORE
authorRichard Biener <rguenther@suse.de>
Mon, 12 Jun 2023 12:09:45 +0000 (14:09 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 12 Jun 2023 13:19:24 +0000 (15:19 +0200)
commit8d3eb3ad5388d2f523e4a6f886c4b3364f77f51f
tree4a79fbae04bb4bc71d829ee557e7f9ac5a2be4b9
parentbc45e18d433f879a02e369d027829f90f9e85724
Fix disambiguation against .MASK_STORE

Alias analysis was treating .MASK_STORE as storing a full vector
which means we disambiguate against decls of smaller than vector size.
That's of course wrong and a similar issue was fixed for DSE already.
The following makes sure we set the size of the access to unknown
and only constrain max_size.

This fixes runtime execution FAILs of gfortran.dg/matmul_2.f90,
gfortran.dg/matmul_6.f90 and gfortran.dg/pr91577.f90 when using
AVX512 with full masked loop vectorization on Zen4.

* tree-ssa-alias.cc (call_may_clobber_ref_p_1): For
.MASK_STORE and friend set the size of the access to
unknown.
gcc/tree-ssa-alias.cc