Skip to content

Commit b1ec1a2

Browse files
committed
[AArch64] NFCI: More sensible implementation of isLegalMaskedGatherScatter.
Gather/Scatter instructions are only available if the whole of SVE is available.
1 parent cba4dfd commit b1ec1a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class AArch64TTIImpl : public BasicTTIImplBase<AArch64TTIImpl> {
276276
}
277277

278278
bool isLegalMaskedGatherScatter(Type *DataType) const {
279-
if (!ST->hasSVE() || !ST->isNeonAvailable())
279+
if (!ST->isSVEAvailable())
280280
return false;
281281

282282
// For fixed vectors, scalarize if not using SVE for them.

0 commit comments

Comments
 (0)