[PATCH] D106494: [AArch64][GlobalISel] Legalize ctpop s128

Jon Roelofs via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 26 14:39:32 PDT 2021


jroelofs updated this revision to Diff 361810.
jroelofs retitled this revision from "WIP: [AArch64][GlobalISel] Legalize ctpop s128" to "[AArch64][GlobalISel] Legalize ctpop s128".
jroelofs edited the summary of this revision.
jroelofs added a comment.

Rebased.

Also added `zext(add(trunc(ctpop(lo)), trunc(ctpop(hi))))` narrowing of the `add` to improve things for ctpop 256.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106494/new/

https://reviews.llvm.org/D106494

Files:
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-ctpop.mir
  llvm/test/CodeGen/AArch64/popcount.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106494.361810.patch
Type: text/x-patch
Size: 7330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210726/12dffeb6/attachment.bin>


More information about the llvm-commits mailing list