This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Teach VSETVLI insertion that it doesn't need to insert vsetvli for vlm.v and vsm.v in some cases.
AbandonedPublic

Authored by jacquesguan on Mar 17 2022, 1:12 AM.

Details

Summary

Unit-stride mask load and store instructions also have EEW=8. So add them to the switch case to avoid redundant VSETVLI.

Diff Detail

Unit TestsFailed

Event Timeline

jacquesguan created this revision.Mar 17 2022, 1:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 1:12 AM
jacquesguan requested review of this revision.Mar 17 2022, 1:12 AM

vlm and vsm instructions should be created with an SEW of 0 so they should be treated as MaskRegOp by the vsetvli pass.

jacquesguan abandoned this revision.Mar 18 2022, 1:21 AM