diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-10-19 23:05:40 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-10-19 23:05:40 +0000 |
commit | 5dbe64e2bc2e4b96654703e85f909536df7ddb84 (patch) | |
tree | 2923faafc51b40c8fedb4e36de0fb18be479ab45 /test/Transforms/LoopVectorize/gcc-examples.ll | |
parent | cfc6cb0c61ef78aad2f63b634b0a6f377361858b (diff) |
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
Diffstat (limited to 'test/Transforms/LoopVectorize/gcc-examples.ll')
-rw-r--r-- | test/Transforms/LoopVectorize/gcc-examples.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Transforms/LoopVectorize/gcc-examples.ll b/test/Transforms/LoopVectorize/gcc-examples.ll index 4e9e6f940e..6fb1792b2c 100644 --- a/test/Transforms/LoopVectorize/gcc-examples.ll +++ b/test/Transforms/LoopVectorize/gcc-examples.ll @@ -202,9 +202,8 @@ define void @example8(i32 %x) nounwind uwtable ssp { ret void } -; We can't vectorize because it has a reduction variable. ;CHECK: @example9 -;CHECK-NOT: <4 x i32> +;CHECK: phi <4 x i32> ;CHECK: ret i32 define i32 @example9() nounwind uwtable readonly ssp { br label %1 |