[llvm] [AArch64][SVE] - Fix crash Possible incorrect use of EVT::getVectorNumElements(). (PR #218733)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 04:55:54 PDT 2026


================

----------------
RKSimon wrote:

This is all you should need:
```
        ElementCount ScaledEC = VT.getVectorElementCount() * Scale;
        MVT NarrowSVT = MVT::getIntegerVT(NarrowBits);
        EVT NarrowVT = EVT::getVectorVT(*DAG.getContext(), NarrowSVT, ScaledEC);
```

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


More information about the llvm-commits mailing list