llvm-project/llvm/lib/Transforms/Vectorize
Alexey Bataev ca2396e673 [SLP] Take user instructions cost into consideration in insertelement vectorization.
Summary:
For better vectorization result we should take into consideration the
cost of the user insertelement instructions when we try to
vectorize sequences that build the whole vector. I.e. if we have the
following scalar code:
```
<Scalar code>
insertelement <ScalarCode>, ...
```
we should consider the cost of the last `insertelement ` instructions as
the cost of the scalar code.

Reviewers: RKSimon, spatel, hfinkel, mkuper

Subscribers: javed.absar, llvm-commits

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

llvm-svn: 324893
2018-02-12 14:54:48 +00:00
..
CMakeLists.txt [LV] Fix PR34248 - recommit D32871 after revert r311304 2017-08-27 12:55:46 +00:00
LLVMBuild.txt
LoadStoreVectorizer.cpp Add explanatory comment to LoadStoreVectorizer. 2018-01-10 03:02:12 +00:00
LoopVectorizationPlanner.h Add missing includes 2018-02-02 00:11:09 +00:00
LoopVectorize.cpp [LV] Fix analyzeInterleaving when -pass-remarks enabled 2018-02-10 00:07:45 +00:00
SLPVectorizer.cpp [SLP] Take user instructions cost into consideration in insertelement vectorization. 2018-02-12 14:54:48 +00:00
VPlan.cpp [LV] NFC patch for moving VP*Recipe class definitions from LoopVectorize.cpp to VPlan.h 2017-12-16 01:12:50 +00:00
VPlan.h [LV][VPlan] NFC patch to move LoopVectorizationPlanner class out of LoopVectorize.cpp 2018-01-07 16:02:58 +00:00
VPlanValue.h [LV] Model masking in VPlan, introducing VPInstructions 2017-11-20 12:01:47 +00:00
Vectorize.cpp Remove redundant includes from lib/Transforms. 2017-12-13 21:31:01 +00:00