This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Detect reused scalars in all possible gathers for better vectorization cost.
ClosedPublic

Authored by ABataev on Oct 5 2021, 7:15 AM.

Details

Summary

Some initially gathered nodes missed the check for the reused scalars,
which leads to high gather cost. Such nodes still can be represented as
m gathers + shuffle instead of n gathers, where m < n.

Diff Detail

Event Timeline

ABataev created this revision.Oct 5 2021, 7:15 AM
ABataev requested review of this revision.Oct 5 2021, 7:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2021, 7:15 AM
anton-afanasyev accepted this revision.Oct 5 2021, 8:50 AM

Thanks for splitting this! LGTM.

This revision is now accepted and ready to land.Oct 5 2021, 8:50 AM
RKSimon accepted this revision.Oct 5 2021, 9:38 AM

LGTM