summaryrefslogtreecommitdiff
path: root/test/Transforms/LoopVectorize/gcc-examples.ll
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-10-19 23:05:40 +0000
committerNadav Rotem <nrotem@apple.com>2012-10-19 23:05:40 +0000
commit5dbe64e2bc2e4b96654703e85f909536df7ddb84 (patch)
tree2923faafc51b40c8fedb4e36de0fb18be479ab45 /test/Transforms/LoopVectorize/gcc-examples.ll
parentcfc6cb0c61ef78aad2f63b634b0a6f377361858b (diff)
downloadllvm-5dbe64e2bc2e4b96654703e85f909536df7ddb84.tar.gz
llvm-5dbe64e2bc2e4b96654703e85f909536df7ddb84.tar.bz2
llvm-5dbe64e2bc2e4b96654703e85f909536df7ddb84.tar.xz
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.ll3
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