This is an archive of the discontinued LLVM Phabricator instance.

[SLP][NFC]Introduce ShuffleCostEstimator and adjustExtracts member function.
ClosedPublic

Authored by ABataev on Apr 7 2023, 6:31 AM.

Details

Summary

Added ShuffleCostEstimator class and the first adjustExtracts member,
which is just a copy of previous AdjustExtractCost lambda.

Diff Detail

Event Timeline

ABataev created this revision.Apr 7 2023, 6:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2023, 6:31 AM
ABataev requested review of this revision.Apr 7 2023, 6:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2023, 6:31 AM
RKSimon accepted this revision.Apr 11 2023, 9:05 AM

LGTM with a few minors

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
6905

formatting

6918

auto *SI

6920

auto *CI

This revision is now accepted and ready to land.Apr 11 2023, 9:05 AM
This revision was landed with ongoing or failed builds.Apr 11 2023, 12:48 PM
This revision was automatically updated to reflect the committed changes.