This is an archive of the discontinued LLVM Phabricator instance.

[RISC-V] fmv.s/fmv.d should be as cheap as a move
ClosedPublic

Authored by arichardson on Aug 25 2020, 3:48 AM.

Details

Summary

Since the canonical floatig-point move is fsgnj rd, rs, rs, we should
handle this case in RISCVInstrInfo::isAsCheapAsAMove().

Diff Detail

Event Timeline

arichardson created this revision.Aug 25 2020, 3:48 AM
arichardson requested review of this revision.Aug 25 2020, 3:48 AM
lenary accepted this revision.Aug 25 2020, 5:34 AM

LGTM!

This revision is now accepted and ready to land.Aug 25 2020, 5:34 AM
This revision was landed with ongoing or failed builds.Aug 27 2020, 2:33 AM
This revision was automatically updated to reflect the committed changes.