This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Mark G_FCONSTANT as legal when there is full fp16 support
ClosedPublic

Authored by paquette on Oct 9 2020, 2:08 PM.

Details

Summary

When there is full fp16 support, there is no reason to widen 16-bit G_FCONSTANTs to 32 bits. Mark them as legal in this case.

Also, we currently import a pattern for materializing a 16-bit 0.0. Add a testcase showing we select it.

(All other 16-bit G_FCONSTANTS are not yet selected.)

Diff Detail

Event Timeline

paquette created this revision.Oct 9 2020, 2:08 PM
paquette requested review of this revision.Oct 9 2020, 2:08 PM
This revision is now accepted and ready to land.Oct 15 2020, 12:07 PM