[SLP][NFC]Introduce ShuffleCostEstimator and adjustExtracts member function.
authorAlexey Bataev <a.bataev@outlook.com>
Fri, 7 Apr 2023 13:14:36 +0000 (06:14 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Tue, 11 Apr 2023 19:47:07 +0000 (12:47 -0700)
commitd00158cd284597165f1dd4245fa3e9ae2fe82eb5
tree3be24f2ba548d69cb018c82a6c9661fdbdd965eb
parent32aaacc609e7a0523d498b244e081ac6f3df532b
[SLP][NFC]Introduce ShuffleCostEstimator and adjustExtracts member function.

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

Differential Revision: https://reviews.llvm.org/D147787
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp