This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use vmv.s.x to lower VID sequences that only the first element is inconsistent.
AbandonedPublic

Authored by jacquesguan on Dec 7 2021, 1:18 AM.

Details

Summary

Because we could use vmv.s.x to set the first element, we could lower a sequence to vid if only the first element is inconsistent.

Diff Detail

Event Timeline

jacquesguan created this revision.Dec 7 2021, 1:18 AM
jacquesguan requested review of this revision.Dec 7 2021, 1:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2021, 1:18 AM

Update test.

Use INSERT_VECTOR_ELT instead of VMV_S_X_VL.

jacquesguan abandoned this revision.Jun 8 2022, 2:25 AM

I create a new revision https://reviews.llvm.org/D127276 which would cover this one.