This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use X0 in vsetvli if AVL ≥ (2 * VLMAX)
AbandonedPublic

Authored by jacquesguan on Jan 10 2022, 12:40 AM.

Details

Summary

According to the v-spec, we always get vl = VLMAX when AVL ≥ (2 *
VLMAX), so we could use X0 in this situations.

Diff Detail

Event Timeline

jacquesguan created this revision.Jan 10 2022, 12:40 AM
jacquesguan requested review of this revision.Jan 10 2022, 12:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2022, 12:40 AM

I agree we could do this, but I don't understand the use case that makes it worth optimizing. Why would a user do this?

I agree we could do this, but I don't understand the use case that makes it worth optimizing. Why would a user do this?

Yes, we usually do not have such cases because we have vsetvlimax interfacenow.

jacquesguan abandoned this revision.Jan 21 2022, 12:24 AM