This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Maintain fixed-length info when optimizing BUILD_VECTORs
ClosedPublic

Authored by frasercrmck on Mar 19 2021, 3:26 AM.

Details

Summary

I'm not sure how I failed to notice this before, but when optimizing
dominant-element BUILD_VECTORs we would lower via the scalable container type,
which lost us the information about the fixed length of the vector types. By
lowering via the fixed-length type we can preserve that information and
eliminate redundant vsetvli instructions.

Diff Detail

Event Timeline

frasercrmck created this revision.Mar 19 2021, 3:26 AM
frasercrmck requested review of this revision.Mar 19 2021, 3:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2021, 3:26 AM
This revision is now accepted and ready to land.Mar 19 2021, 9:08 AM