This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Support vector conversions between fp and i1
ClosedPublic

Authored by frasercrmck on May 28 2021, 4:44 AM.

Details

Summary

This patch custom lowers FP_TO_[US]INT and [US]INT_TO_FP conversions
between floating-point and boolean vectors. As the default action is
scalarization, this patch both supports scalable-vector conversions and
improves the code generation for fixed-length vectors.

The lowering for these conversions can piggy-back on the existing
lowering, which lowers the operations to a supported narrowing/widening
conversion and then either an extension or truncation.

Diff Detail

Event Timeline

frasercrmck created this revision.May 28 2021, 4:44 AM
frasercrmck requested review of this revision.May 28 2021, 4:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 28 2021, 4:44 AM
This revision is now accepted and ready to land.May 28 2021, 10:04 AM
This revision was automatically updated to reflect the committed changes.