LoopVectorizer: Fix 15830. When scalarizing and unrolling stores make sure that the...
authorNadav Rotem <nrotem@apple.com>
Tue, 23 Apr 2013 17:12:42 +0000 (17:12 +0000)
committerNadav Rotem <nrotem@apple.com>
Tue, 23 Apr 2013 17:12:42 +0000 (17:12 +0000)
commita7d9a6ee63bec70fecea79b85a30108ed3e8fabd
tree29d83f77b12af220401f880a583be82a0623fc84
parent3d7b39e7d4d3cef9f859f5965fbf959e251ee3ee
LoopVectorizer: Fix 15830. When scalarizing and unrolling stores make sure that the order in which the elements are scalarized is the same as the original order.
This fixes a miscompilation in FreeBSD's regex library.

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