Mark vector loops as already vectorized
authorRenato Golin <renato.golin@linaro.org>
Thu, 24 Oct 2013 14:50:51 +0000 (14:50 +0000)
committerRenato Golin <renato.golin@linaro.org>
Thu, 24 Oct 2013 14:50:51 +0000 (14:50 +0000)
commit1ba143e1401c8207825ea9fb477a15f672fd23f8
tree964a057a5d2940327c4f030d4bf8884f641e68cd
parentf312b480e23cf4a2b44a510cc5ae4b022cdee09e
Mark vector loops as already vectorized

Make sure we mark all loops (scalar and vector) when vectorizing,
so that we don't try to vectorize them anymore. Also, set unroll
to 1, since this is what we check for on early exit.

llvm-svn: 193349
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/already-vectorized.ll [new file with mode: 0644]
llvm/test/Transforms/LoopVectorize/vectorize-once.ll