This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add special case to constant materialization to remove trailing zeros first.
ClosedPublic

Authored by craig.topper on Apr 20 2022, 11:19 PM.

Details

Summary

If there are fewer than 12 trailing zeros, we'll try to use an ADDI
at the end of the sequence. If we strip trailing zeros and end the
sequence with a SLLI we might find a shorter sequence.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 20 2022, 11:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2022, 11:19 PM
craig.topper requested review of this revision.Apr 20 2022, 11:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2022, 11:19 PM
This revision is now accepted and ready to land.Apr 21 2022, 3:39 AM
This revision was landed with ongoing or failed builds.Apr 21 2022, 9:43 AM
This revision was automatically updated to reflect the committed changes.