This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Import FMOV patterns rather than manually selecting it
ClosedPublic

Authored by paquette on Feb 25 2021, 4:09 PM.

Details

Summary

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.

Diff Detail

Event Timeline

paquette created this revision.Feb 25 2021, 4:09 PM
paquette requested review of this revision.Feb 25 2021, 4:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2021, 4:09 PM
aemerson accepted this revision.Feb 26 2021, 1:32 PM

LGTM.

This revision is now accepted and ready to land.Feb 26 2021, 1:32 PM