This is an archive of the discontinued LLVM Phabricator instance.

[Sparc] Use synthetic instruction clr to zero register instead of sethi
ClosedPublic

Authored by dcederman on Apr 19 2018, 5:13 AM.

Details

Summary

Using clr reg/mov %g0, reg/or %g0, %g0, reg to zero a register looks much better than sethi 0, reg.

Diff Detail

Repository
rL LLVM

Event Timeline

dcederman created this revision.Apr 19 2018, 5:13 AM
jyknight accepted this revision.Apr 19 2018, 7:11 PM
This revision is now accepted and ready to land.Apr 19 2018, 7:11 PM
This revision was automatically updated to reflect the committed changes.