[PATCH] D103999: [AArch64][GlobalISel] Mark some G_BITREVERSE types as legal + select them

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 9 17:39:46 PDT 2021


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

We fall back on G_CTTZ_ZERO_UNDEF a lot when building clang for arm64 with gisel.

Handling this will require that we can handle G_BITREVERSE.

This patch marks G_BITREVERSE instructions with natively supported types as legal. We get selection on these types for free via the importer.


https://reviews.llvm.org/D103999

Files:
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-bitreverse.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-bitreverse.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103999.351017.patch
Type: text/x-patch
Size: 5445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210610/32a9260f/attachment.bin>


More information about the llvm-commits mailing list