OSDN Git Service

Vectorizer: Add support for loop reductions.
authorNadav Rotem <nrotem@apple.com>
Fri, 19 Oct 2012 23:05:40 +0000 (23:05 +0000)
committerNadav Rotem <nrotem@apple.com>
Fri, 19 Oct 2012 23:05:40 +0000 (23:05 +0000)
commit5dbe64e2bc2e4b96654703e85f909536df7ddb84
tree2923faafc51b40c8fedb4e36de0fb18be479ab45
parentcfc6cb0c61ef78aad2f63b634b0a6f377361858b
Vectorizer: Add support for loop reductions.

For example:

  for (i=0; i<n; i++)
   sum += A[i] +  B[i] + i;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166351 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/gcc-examples.ll
test/Transforms/LoopVectorize/increment.ll [deleted file]
test/Transforms/LoopVectorize/reduction.ll [new file with mode: 0644]