Using clr reg/mov %g0, reg/or %g0, %g0, reg to zero a register looks much better than sethi 0, reg.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D45810
[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
Event TimelineHerald added subscribers: llvm-commits, jrtc27, fedor.sergeev, eraman. · View Herald TranscriptApr 19 2018, 5:13 AM This revision is now accepted and ready to land.Apr 19 2018, 7:11 PM Closed by commit rL330396: [Sparc] Use synthetic instruction clr to zero register instead of sethi (authored by dcederman). · Explain WhyApr 20 2018, 12:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 143244 llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
llvm/trunk/test/CodeGen/SPARC/atomics.ll
llvm/trunk/test/CodeGen/SPARC/imm.ll
llvm/trunk/test/CodeGen/SPARC/inlineasm.ll
llvm/trunk/test/CodeGen/SPARC/vector-extract-elt.ll
|