LoopVectorize: Don't store a reversed value in the vectorized value map
authorArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 27 Jun 2013 00:45:41 +0000 (00:45 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 27 Jun 2013 00:45:41 +0000 (00:45 +0000)
commit45ef457b8f92ca030681cd47545fad8b1d693180
tree93a39eca579f998dc96a84d41d482cecebf29089
parentfb76ffd10b1e68ed157a4b0d2156a5e67a748b83
LoopVectorize: Don't store a reversed value in the vectorized value map

When we store values for reversed induction stores we must not store the
reversed value in the vectorized value map. Another instruction might use this
value.

This fixes 3 test cases of PR16455.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185051 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/store-shuffle-bug.ll [new file with mode: 0644]