The analysis of the store sequence goes in straight order - from the
first store to the last. Bu the best opportunity for vectorization will
happen if we're going to use reverse order - from last store to the
first. It may be best because usually users have some initialization
part + further processing and this first initialization may confuse
SLP vectorizer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/Transforms/SLPVectorizer/X86/stores_vectorize.ll | ||
---|---|---|
34 ↗ | (On Diff #121511) | TMP2 and TMP5 are the same? |
test/Transforms/SLPVectorizer/X86/stores_vectorize.ll | ||
---|---|---|
34 ↗ | (On Diff #121511) | Yes, but they are used for different purpose. |
lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
---|---|---|
4334 ↗ | (On Diff #121511) | I don't understand, what's wrong with the sequence? |