This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Do not emit extra shuffle for insertelements vectorization.
ClosedPublic

Authored by ABataev on Aug 4 2021, 11:57 AM.

Details

Summary

If the vectorized insertelements instructions form indentity subvector
(the subvector at the beginning of the long vector), it is just enough
to extend the vector itself, no need to generate inserting subvector
shuffle.

Differential Review: https://reviews.llvm.org/D107344

Diff Detail

Event Timeline

ABataev created this revision.Aug 4 2021, 11:57 AM
ABataev requested review of this revision.Aug 4 2021, 11:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2021, 11:57 AM
This revision is now accepted and ready to land.Aug 4 2021, 12:05 PM
srj added a comment.Aug 4 2021, 2:22 PM

Appears to be good for Halide too, thanks!

srj accepted this revision.Aug 4 2021, 2:22 PM