[PATCH] D97511: [AArch64][GlobalISel] Import FMOV patterns rather than manually selecting it

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 16:09:19 PST 2021


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

There are existing patterns for FMOVHi, FMOVSi, and FMOVDi in AArch64InstrFormats.td.

Importing these allows us to remove the manual selection code for FMOV.

It also allows us to select FMOVHi for non-zero constants when we have full fp-16 support.

Refactor some of the code in AArch64InstrFormats.td so that we can create equivalent custom renderers in GlobalISel.


https://reviews.llvm.org/D97511

Files:
  llvm/lib/Target/AArch64/AArch64InstrFormats.td
  llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/select-fp16-fconstant.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97511.326546.patch
Type: text/x-patch
Size: 8441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210226/959779bd/attachment.bin>


More information about the llvm-commits mailing list