This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Fix a crash in fixed-length build_vector lowering
ClosedPublic

Authored by frasercrmck on Feb 15 2021, 8:45 AM.

Details

Summary

Non-splatted non-integer build_vector nodes were mistakenly being
lowered as VID expressions, which should not happen. VID can only be
used to select integer build_vector nodes.

Diff Detail

Event Timeline

frasercrmck created this revision.Feb 15 2021, 8:45 AM
frasercrmck requested review of this revision.Feb 15 2021, 8:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 15 2021, 8:45 AM

I tried to refactor IsVID into a functional-style all_of expression but the combination of enumerate and op_values seems not to be possible.

This revision is now accepted and ready to land.Feb 15 2021, 4:29 PM
This revision was landed with ongoing or failed builds.Feb 16 2021, 2:31 AM
This revision was automatically updated to reflect the committed changes.