This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Use common logic for cost estimation of the alternate vector nodes.
ClosedPublic

Authored by ABataev on Aug 8 2023, 9:44 AM.

Details

Summary

We can use buildShuffleEntryMask() to build the shuffle mask correctly
not only for the alternate nodes with reuses, but also for the nodes
without reused scalars. It allows better to estimate the cost of the
node and emit better code.

Diff Detail

Event Timeline

ABataev created this revision.Aug 8 2023, 9:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 9:44 AM
ABataev requested review of this revision.Aug 8 2023, 9:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 9:44 AM
Herald added a subscriber: wangpc. · View Herald Transcript
vdmitrie accepted this revision.Aug 9 2023, 9:31 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Aug 9 2023, 9:31 AM