SLPVectorizer: Fix a bug in the code that generates extracts for values with multiple...
authorNadav Rotem <nrotem@apple.com>
Sun, 12 May 2013 22:58:45 +0000 (22:58 +0000)
committerNadav Rotem <nrotem@apple.com>
Sun, 12 May 2013 22:58:45 +0000 (22:58 +0000)
commit507b9242ed3cbac13a1c4c58fe28188e1a0d6fa6
tree0023a065861093a903fc889cabb9c9721029a65e
parent57e02b3358e8caeddb093fab88fee6f73cd5d597
SLPVectorizer: Fix a bug in the code that generates extracts for values with multiple users.
The external user does not have to be in lane #0. We have to save the lane for each scalar so that we know which vector lane to extract.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181674 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/VecUtils.cpp
test/Transforms/SLPVectorizer/X86/diamond.ll