This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use vmv.s.x instead of vfmv.s.f when the floating point scalar is 0.
ClosedPublic

Authored by jacquesguan on Dec 29 2021, 12:16 AM.

Details

Summary

Use integer vector scalar move instruction when move 0 to avoid add a integer-float move instruction.

Diff Detail

Event Timeline

jacquesguan created this revision.Dec 29 2021, 12:16 AM
jacquesguan requested review of this revision.Dec 29 2021, 12:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 29 2021, 12:16 AM
This revision is now accepted and ready to land.Dec 29 2021, 3:05 PM
This revision was landed with ongoing or failed builds.Dec 29 2021, 6:35 PM
This revision was automatically updated to reflect the committed changes.