[llvm] [AArch64] Improve scalar and Neon popcount with SVE CNT. (PR #143870)
Ricardo Jesus via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 03:36:26 PDT 2025
================
@@ -10614,13 +10614,13 @@ SDValue AArch64TargetLowering::LowerCTPOP_PARITY(SDValue Op,
return SDValue();
EVT VT = Op.getValueType();
- if (VT.isScalableVector() ||
- useSVEForFixedLengthVectorVT(VT, !Subtarget->isNeonAvailable()))
+ assert((!Subtarget->isNeonAvailable() ||
+ (VT != MVT::v8i8 && VT != MVT::v16i8)) &&
+ "Unexpected custom lowering for B vectors with Neon available.");
----------------
rj-jesus wrote:
Thanks, I've removed this assert. I wanted to ensure we didn't attempt to lower NEON byte vectors with SVE when NEON is available, but you're right, this can be checked via tests!
https://github.com/llvm/llvm-project/pull/143870
More information about the llvm-commits
mailing list