OSDN Git Service

[SLP] Initial rework for min/max horizontal reduction vectorization, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 31 Jul 2017 14:36:05 +0000 (14:36 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 31 Jul 2017 14:36:05 +0000 (14:36 +0000)
commit837b97fb9a2fa421d1569d09420cbb2bdcea1359
treef0801c5b8c5da33e9940dc675f0c3cd72aab1d25
parent0bc57f232fe522fce813b8379ccbe9ffbd9c7550
[SLP] Initial rework for min/max horizontal reduction vectorization, NFC.

Summary: All getReductionCost() functions are renamed to getArithmeticReductionCost() + added basic infrastructure to handle non-binary reduction operations.

Reviewers: spatel, mzolotukhin, Ayal, mkuper, gilr, hfinkel

Subscribers: RKSimon, llvm-commits

Differential Revision: https://reviews.llvm.org/D29402

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309566 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CostModel.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp