[llvm] [AArch64][SDAG] Enable +sme2p2/+sve2p2 lowering for compressstore (PR #218624)

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 05:34:14 PDT 2026


================
@@ -334,13 +334,20 @@ class AArch64TTIImpl final : public BasicTTIImplBase<AArch64TTIImpl> {
   }
 
   bool isElementTypeLegalForCompressStore(Type *Ty) const {
-    return Ty->isFloatTy() || Ty->isDoubleTy() || Ty->isIntegerTy(32) ||
+    // For streaming SME2p2, only consider 8bit or 16bit Scalar types.
----------------
Stylie777 wrote:

Updated with the suggestion in the comment below. I've also added run lines to `see-masked-compressstore.ll` to test the 32bit and 64bit types with SME2p2.

https://github.com/llvm/llvm-project/pull/218624


More information about the llvm-commits mailing list