[PATCH] D150677: [GlobalIsel][X86] Legalize G_CTPOP and G_CTLZ

Thorsten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 08:00:01 PDT 2023


tschuett created this revision.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
tschuett requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

G_BSWAP wass reverted -> added to this diff.

check plan: ninja check-llvm-codegen-x86

Future work: G_SUB and G_ZEXT need some modernization.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150677

Files:
  llvm/lib/Target/X86/X86LegalizerInfo.cpp
  llvm/lib/Target/X86/X86LegalizerInfo.h
  llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir
  llvm/test/CodeGen/X86/GlobalISel/legalize-ctpop.mir
  llvm/test/CodeGen/X86/GlobalISel/legalize-leading-zeros.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150677.522626.patch
Type: text/x-patch
Size: 11016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230516/1ba0e4e9/attachment.bin>


More information about the llvm-commits mailing list