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)
commitb3e8e688da4e71a77399f21318f89e4010094324
tree0d76b1ace11514edaf43cd2c07c9193195d45bac
parent7db44294301b1f4597a58b6cea253f196bd1c314
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.

llvm-svn: 167032
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/reduction.ll