[PATCH] D100908: [AArch64][GlobalISel] Legalize narrow type G_CTPOPs

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 20 16:16:37 PDT 2021


paquette created this revision.
paquette added reviewers: aemerson, jroelofs, t.p.northover.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka.
paquette requested review of this revision.
Herald added a project: LLVM.

Using `clampScalar` here because we ought to mark s128 as custom eventually.

(Right now, it will just fall back.)

With this legalization, we get the same code as SDAG: https://godbolt.org/z/TneoPKrKG


https://reviews.llvm.org/D100908

Files:
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-ctpop.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100908.339031.patch
Type: text/x-patch
Size: 6340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210420/ba3448c9/attachment.bin>


More information about the llvm-commits mailing list