This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Don't modify the SEW immediate on the V extension pseudo instructions after inserting VSETVLI.
ClosedPublic

Authored by craig.topper on Mar 5 2021, 10:55 AM.

Details

Summary

Previously we set the value to -1, but the SEW information could
be useful for scheduling.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 5 2021, 10:55 AM
craig.topper requested review of this revision.Mar 5 2021, 10:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2021, 10:55 AM
Herald added a subscriber: MaskRay. · View Herald Transcript
frasercrmck accepted this revision.Mar 8 2021, 1:35 AM

I also don't see the need to scrub the SEW value for no reason. Unless the original authors had something in mind? @rogfer01 or @evandro ?

This revision is now accepted and ready to land.Mar 8 2021, 1:35 AM
rogfer01 accepted this revision.Mar 9 2021, 8:39 AM

Hi. We did this out of an abundance of caution. We wanted to be sure after the vsetvli were emitted, we didn't attempt to use the SEW operand (either by accident or intentionally).

It never occured to me that scheduling could benefit from that, so I think it is a plus to keep it.