OSDN Git Service

Add support for reduction variables that do not start at zero.
authorNadav Rotem <nrotem@apple.com>
Sun, 21 Oct 2012 05:52:51 +0000 (05:52 +0000)
committerNadav Rotem <nrotem@apple.com>
Sun, 21 Oct 2012 05:52:51 +0000 (05:52 +0000)
commitc84787262942a400a8de6539ee79f4de72d3f872
treecb5a0e986377bf331f00ad120a24b61915034fe8
parentf01cad69c1ab1b025c524d1ac16060b2cc0f4668
Add support for reduction variables that do not start at zero.
This is important for nested-loop reductions such as :

In the innermost loop, the induction variable does not start with zero:

for (i = 0 .. n)
 for (j = 0 .. m)
  sum += ...

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