This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add support for fixed vector masked gather/scatter.
ClosedPublic

Authored by craig.topper on Mar 19 2021, 4:23 PM.

Details

Summary

I've split the gather/scatter custom handler to avoid complicating
it with even more differences between gather/scatter.

Tests are the scalable vector tests with the vscale removed and
dropped the tests that used vector.insert. We're probably not
as thorough on the splitting cases since we use 128 for VLEN here
but scalable vector use a known min size of 64.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 19 2021, 4:23 PM
craig.topper requested review of this revision.Mar 19 2021, 4:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2021, 4:23 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
frasercrmck accepted this revision.Mar 22 2021, 8:13 AM

LGTM otherwise.

llvm/lib/Target/RISCV/RISCVISelLowering.cpp
3576

nit: ..to a RVV indexed store.

This revision is now accepted and ready to land.Mar 22 2021, 8:13 AM