This is an archive of the discontinued LLVM Phabricator instance.

[mips] Use less instruction to load zero into FPR by li.s / li.d pseudos
ClosedPublic

Authored by atanasyan on Oct 10 2019, 3:28 AM.

Details

Summary

If li.s or li.d loads zero into a FPR, it's not necessary to load zero into at GPR register and then move its value into a floating point register. We can use as a source register the zero / $0 one.

Diff Detail

Event Timeline

atanasyan created this revision.Oct 10 2019, 3:28 AM
atanasyan updated this revision to Diff 224577.Oct 11 2019, 5:38 AM

Rebased against the master branch.

atanasyan updated this revision to Diff 224580.Oct 11 2019, 6:02 AM

Rebased against the master branch.

This revision is now accepted and ready to land.Oct 11 2019, 6:08 AM
This revision was automatically updated to reflect the committed changes.