[llvm] [AArch64] Improve scalar and Neon popcount with SVE CNT. (PR #143870)

Ricardo Jesus via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 26 08:06:49 PDT 2025


================
@@ -10614,13 +10614,10 @@ SDValue AArch64TargetLowering::LowerCTPOP_PARITY(SDValue Op,
     return SDValue();
 
   EVT VT = Op.getValueType();
-  if (VT.isScalableVector() ||
-      useSVEForFixedLengthVectorVT(VT, !Subtarget->isNeonAvailable()))
+  bool OverrideNEON = !Subtarget->isNeonAvailable() || VT.isFixedLengthVector();
+  if (VT.isScalableVector() || useSVEForFixedLengthVectorVT(VT, OverrideNEON))
----------------
rj-jesus wrote:

Thanks, done.

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


More information about the llvm-commits mailing list