This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Always replace FP16 bitcasts with VMOVhr or VMOVrh
ClosedPublic

Authored by dmgreen on Apr 21 2020, 1:31 PM.

Details

Summary

This changes the logic with lowering fp16 bitcasts to always produce either a VMOVhr or a VMOVrh, instead of only trying to do it with certain surrounding nodes. To perform the same optimisations demand bits and known bits information has been added for them.

Diff Detail

Event Timeline

dmgreen created this revision.Apr 21 2020, 1:31 PM
dmgreen retitled this revision from [ARM] Always replace FP16 bitcasts with VMOVhr or VMOVhr to [ARM] Always replace FP16 bitcasts with VMOVhr or VMOVrh.Apr 21 2020, 1:32 PM
efriedma accepted this revision.Apr 21 2020, 1:40 PM

LGTM

llvm/lib/Target/ARM/ARMISelLowering.cpp
13002–13008

"register"

This revision is now accepted and ready to land.Apr 21 2020, 1:40 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2020, 8:34 AM