This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Convert most of the information about RVV Pseudos into bits in TSFlags.
ClosedPublic

Authored by craig.topper on Jan 10 2021, 11:37 AM.

Details

Summary

This patch moves all but the BaseInstr to bits in TSFlags.

For the index fields, we can just use a bit to indicate their presence.
The locations of the operands are well defined.

This reduces the llc binary by about 32K on my build. It also
removes the binary search of the table from the custom inserter.
Instead we just check that the SEW op is present.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 10 2021, 11:37 AM
craig.topper requested review of this revision.Jan 10 2021, 11:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2021, 11:37 AM
Herald added a subscriber: MaskRay. · View Herald Transcript
rogfer01 accepted this revision.Jan 10 2021, 12:42 PM

This is a very nice cleanup. Thanks @craig.topper!

This revision is now accepted and ready to land.Jan 10 2021, 12:42 PM
This revision was landed with ongoing or failed builds.Jan 10 2021, 7:18 PM
This revision was automatically updated to reflect the committed changes.