[PATCH] D53259: [AARCH64] Improve vector popcnt lowering with ADDLP

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 15 12:44:17 PDT 2018


efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: test/CodeGen/AArch64/arm64-vpopcnt.ll:49
+; CHECK-NEXT:    uaddlp v0.1d, v0.2s
+; CHECK-NEXT:    ret
+  %cnt = tail call <1 x i64> @llvm.ctpop.v1i64(<1 x i64> %x)
----------------
It's possible to save two instructions here using uaddlv.  But we don't actually have any way to represent the node in question in the DAG, so it's okay to skip for now.


Repository:
  rL LLVM

https://reviews.llvm.org/D53259





More information about the llvm-commits mailing list