This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Create the correct mask type when lowering EXTRACT_VECTOR_ELT
ClosedPublic

Authored by frasercrmck on Sep 24 2021, 8:33 AM.

Details

Summary

This particular case was creating a VMSET_VL using the old
fixed-length type in order to pass a mask to other custom nodes
operating on the scalable container type. This kind of thing wasn't
caught for us; I only noticed when experimenting with odd-length
vectors, where it was trying to generate an invalid v3i1 MVT.

Diff Detail

Event Timeline

frasercrmck created this revision.Sep 24 2021, 8:33 AM
frasercrmck requested review of this revision.Sep 24 2021, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 24 2021, 8:33 AM
This revision is now accepted and ready to land.Sep 24 2021, 9:20 AM
This revision was landed with ongoing or failed builds.Sep 27 2021, 1:54 AM
This revision was automatically updated to reflect the committed changes.