[AArch64] NFCI: More sensible implementation of isLegalMaskedGatherScatter.

Gather/Scatter instructions are only available if the whole of SVE
is available.
This commit is contained in:
Sander de Smalen 2024-06-21 10:08:19 +00:00
parent cba4dfdd2f
commit b1ec1a2dc8

View File

@ -276,7 +276,7 @@ public:
}
bool isLegalMaskedGatherScatter(Type *DataType) const {
if (!ST->hasSVE() || !ST->isNeonAvailable())
if (!ST->isSVEAvailable())
return false;
// For fixed vectors, scalarize if not using SVE for them.