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

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 01:27:17 PDT 2026


================
@@ -334,6 +334,11 @@ class AArch64TTIImpl final : public BasicTTIImplBase<AArch64TTIImpl> {
   }
 
   bool isElementTypeLegalForCompressStore(Type *Ty) const {
+    if ((ST->hasSVE2p2() || ST->hasSME2p2()) &&
----------------
sdesmalen-arm wrote:

Should this take streaming mode into consideration?

```suggestion
    if ((ST->hasSVE2p2() || (ST->isSVEorStreamingSVEAvailable() && ST->hasSME2p2())) &&
```

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


More information about the llvm-commits mailing list