This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Remove createVirtualRegister from RISCVInstrInfo::movImm.
ClosedPublic

Authored by craig.topper on Feb 1 2022, 2:43 PM.

Details

Summary

Based on the discussion in D61884, this was done to enable compressed
instructions by giving freedom to pick a compressible register.

Integer materializing can generate LUI, ADDI, ADDIW, SLLI and some
Zb* instructions. C.LI, C.LUI, C.ADDI, C.ADDIW, and C.SLLI all have a 5-bit
register encoding. The Zb* instructions aren't compressible. Based on
that I don't think compressibility of the register is a concern.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 1 2022, 2:43 PM
craig.topper requested review of this revision.Feb 1 2022, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2022, 2:43 PM
asb accepted this revision.Feb 3 2022, 1:12 AM

You're right - thanks for the cleanup! LGTM.

This revision is now accepted and ready to land.Feb 3 2022, 1:12 AM
This revision was landed with ongoing or failed builds.Feb 3 2022, 8:34 AM
This revision was automatically updated to reflect the committed changes.