[llvm] [AArch64][SVE] Add basic support for `@llvm.masked.compressstore` (PR #168350)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 02:21:49 PST 2025
================
@@ -332,6 +332,23 @@ class AArch64TTIImpl final : public BasicTTIImplBase<AArch64TTIImpl> {
return isLegalMaskedLoadStore(DataType, Alignment);
}
+ bool isElementTypeLegalForCompressStore(Type *Ty) const {
+ return Ty->isFloatTy() || Ty->isDoubleTy() || Ty->isIntegerTy(32) ||
+ Ty->isIntegerTy(64);
+ }
+
+ bool isLegalMaskedCompressStore(Type *DataType,
+ Align Alignment) const override {
+ if (!ST->isSVEAvailable())
----------------
MacDue wrote:
Yep :+1: I've left it like this as these variants have yet to be implemented for `vector.compress` (and its lowering only checks `isSVEAvailable()`).
https://github.com/llvm/llvm-project/pull/168350
More information about the llvm-commits
mailing list