This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Optimize select-like vector shuffles
ClosedPublic

Authored by frasercrmck on Mar 24 2021, 8:30 AM.

Details

Summary

This patch adds a small optimization for vector shuffle lowering,
detecting shuffles which can be re-expressed as vector selects.

Diff Detail

Event Timeline

frasercrmck created this revision.Mar 24 2021, 8:30 AM
frasercrmck requested review of this revision.Mar 24 2021, 8:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2021, 8:30 AM

This test file doesn't currently exist: I will/would pre-commit it before merging.

I do wonder if this should be offered as a target-independent optimization, but as it stands this is the best way of catching this pattern.

This revision is now accepted and ready to land.Mar 24 2021, 5:12 PM
  • rebase on top of main + pre-committed test cases
  • remove unused check prefixes
This revision was automatically updated to reflect the committed changes.