[SLP vectorizer]: Choose the best consecutive candidate to pair with a store instruction.
authorWei Mi <wmi@google.com>
Thu, 30 Jul 2015 17:40:39 +0000 (17:40 +0000)
committerWei Mi <wmi@google.com>
Thu, 30 Jul 2015 17:40:39 +0000 (17:40 +0000)
commit4db6728b3a29b51add70c4f2553c726d30a1988a
treeb6eb9763bf012e59529e1ba05b44ec32b73b7c4e
parent778e06475bb6f1c7411e0a0cd7aaa67d44e9f8a6
[SLP vectorizer]: Choose the best consecutive candidate to pair with a store instruction.

The patch changes the SLPVectorizer::vectorizeStores to choose the immediate
succeeding or preceding candidate for a store instruction when it has multiple
consecutive candidates. In this way it has better chance to find more slp
vectorization opportunities.

Differential Revision: http://reviews.llvm.org/D10445

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243666 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/pr23510.ll [new file with mode: 0644]