From cc03331caaeee00b1238654feda8c5a517e48c3a Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Tue, 30 Oct 2012 18:12:36 +0000 Subject: LoopVectorize: Fix a bug in the initialization of reduction variables. AND needs to start at all-one while XOR, and OR need to start at zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167032 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/LoopVectorize/reduction.ll | 1 + 1 file changed, 1 insertion(+) (limited to 'test/Transforms/LoopVectorize') diff --git a/test/Transforms/LoopVectorize/reduction.ll b/test/Transforms/LoopVectorize/reduction.ll index 746a08c3ea..d19f7c1b0b 100644 --- a/test/Transforms/LoopVectorize/reduction.ll +++ b/test/Transforms/LoopVectorize/reduction.ll @@ -151,6 +151,7 @@ for.end: ; preds = %for.body, %entry ;CHECK: @reduction_and ;CHECK: and <4 x i32> +;CHECK: ;CHECK: ret i32 define i32 @reduction_and(i32 %n, i32* nocapture %A, i32* nocapture %B) nounwind uwtable readonly { entry: -- cgit v1.2.3-70-g09d2