Add alias disambiguation for vectorizer load/store IFNs
authorRichard Biener <rguenther@suse.de>
Wed, 20 Jul 2022 13:46:17 +0000 (15:46 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 21 Jul 2022 06:59:37 +0000 (08:59 +0200)
commit6877993c4da49315151e9d912408480070144dd3
tree4dba970626664c46a3a701287826b004b439d5de
parent742377ed0f09313503a1c5393c4f742d69249521
Add alias disambiguation for vectorizer load/store IFNs

The following adds support for MASK_STORE, MASK_LOAD and friends
to call_may_clobber_ref_p and ref_maybe_used_by_call_p.  Since
they all use a special argument to specify TBAA they are not really
suited for fnspec handling thus the manual support.

* tree-ssa-alias.cc (ref_maybe_used_by_call_p_1): Special-case
store internal functions and IFN_MASK_LOAD, IFN_LEN_LOAD
and IFN_MASK_LOAD_LANES.
(call_may_clobber_ref_p_1): Special-case IFN_MASK_STORE,
IFN_LEN_STORE and IFN_MASK_STORE_LANES.
gcc/tree-ssa-alias.cc