[PATCH] D53257: [ARM][NEON] Improve vector popcnt lowering with PADDL (PR39281)

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 15 03:23:52 PDT 2018


samparker added inline comments.


================
Comment at: lib/Target/ARM/ARMISelLowering.cpp:5454
+    SmallVector<SDValue, 8> Ops;
+    Ops.push_back(DAG.getConstant(Intrinsic::arm_neon_vpaddlu, DL,
+                                  TLI.getPointerTy(DAG.getDataLayout())));
----------------
For the 64-bit vector case, couldn't we use vpadd instead? We don't care about signed/unsigned, but we'd have to know that the wide result isn't necessary too - which I expect is fine for most bit counting cases.


Repository:
  rL LLVM

https://reviews.llvm.org/D53257





More information about the llvm-commits mailing list