LoopVectorize: Fix a bug in the initialization of reduction variables. AND needs...
authorNadav Rotem <nrotem@apple.com>
Tue, 30 Oct 2012 18:12:36 +0000 (18:12 +0000)
committerNadav Rotem <nrotem@apple.com>
Tue, 30 Oct 2012 18:12:36 +0000 (18:12 +0000)
commitcc03331caaeee00b1238654feda8c5a517e48c3a
treef11ea6af622709a727156793d4b383e32537e839
parentc197a55019e9cf1a2403eaed5854d1091d63319c
LoopVectorize: Fix a bug in the initialization of reduction variables. AND needs to start at all-one
while XOR, and OR need to start at zero.

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