This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Add FMOVH0: materialize 0 using zero register for f16 values
ClosedPublic

Authored by SjoerdMeijer on Aug 24 2017, 3:31 AM.

Details

Summary

Instead of loading 0 from a constant pool, it's of course much better to materialize it using an fmov and the zero register.

Thanks to Ahmed Bougacha for the suggestion.

Diff Detail

Repository
rL LLVM

Event Timeline

SjoerdMeijer created this revision.Aug 24 2017, 3:31 AM
olista01 added inline comments.Aug 24 2017, 3:40 AM
lib/Target/AArch64/AArch64AsmPrinter.cpp
504 ↗(On Diff #112531)

This code path is not tested.

Added test case.

This revision is now accepted and ready to land.Aug 24 2017, 4:22 AM
This revision was automatically updated to reflect the committed changes.