[llvm] Fixes [AArch64] Assertion `EltCnt.isKnownEven() && "Cannot halve vector with odd number of elements."' failed. (PR #166528)

Shakil Ahmed via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 05:27:24 PST 2025


================
@@ -1333,6 +1333,11 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
           TargetLowering::TypeSplitVector;
       if ((SplitSrc || SplitDst) && SrcVTy->getElementCount().isVector() &&
           DstVTy->getElementCount().isVector()) {
+        auto SrcEltCnt = SrcVTy->getElementCount();
----------------
ahmedshakill wrote:

Sure. Could you also provide a feedback on the test added? 

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


More information about the llvm-commits mailing list