This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Handle PseudoVRELOAD and PseudoVSPILL in getInstSizeInBytes.
ClosedPublic

Authored by khchen on Apr 17 2021, 6:15 AM.

Details

Summary

It's necessary to calculate correct instruction size because
PseudoVRELOAD and PseudoSPILL will be expanded into multiple
instructions.

Diff Detail

Event Timeline

khchen created this revision.Apr 17 2021, 6:15 AM
khchen requested review of this revision.Apr 17 2021, 6:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2021, 6:15 AM
frasercrmck accepted this revision.Apr 19 2021, 2:13 AM

LGTM. Perhaps we could have a comment explaining why this computation is correct, or just pointing the reader to expandVSPILL/expandVRELOAD since the two are linked.

This revision is now accepted and ready to land.Apr 19 2021, 2:13 AM