LoopVectorize: Fix a bug in the scalarization of instructions.
authorNadav Rotem <nrotem@apple.com>
Thu, 20 Dec 2012 20:24:40 +0000 (20:24 +0000)
committerNadav Rotem <nrotem@apple.com>
Thu, 20 Dec 2012 20:24:40 +0000 (20:24 +0000)
commit8386acd7348003d13a2db3c4dd3274653d8ffe10
treef423d8613e6456ba0c25b32c14a1e135afc8f5df
parent139e407d526193017d42473c8d4892933de78f14
LoopVectorize: Fix a bug in the scalarization of instructions.
Before if-conversion we could check if a value is loop invariant
if it was declared inside the basic block. Now that loops have
multiple blocks this check is incorrect.

This fixes External/SPEC/CINT95/099_go/099_go

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