LoopVectorize: External uses must use the last value in a reduction cycle
authorArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 7 Oct 2013 21:05:43 +0000 (21:05 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 7 Oct 2013 21:05:43 +0000 (21:05 +0000)
commit1ee3c0008be6f7012aa69f7a73a2819300bdf23f
tree6603eb4dc1458fae0bd918409ef74e8e363cc168
parent42be15fcbeedaa67c4b5f4b19eb273749ae36465
LoopVectorize: External uses must use the last value in a reduction cycle

Otherwise, we don't perform operations that would have been performed on
the scalar version.

Fixes PR17498.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192133 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/reduction.ll