summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-10-21 02:38:01 +0000
committerNadav Rotem <nrotem@apple.com>2012-10-21 02:38:01 +0000
commit5a418ba5f5a6498a25d5eacb0f876d9f358c977b (patch)
treeee3c7dc1c523d80d980c59b6cac1982bdc341fed /test
parent64486737d59c835725c61c96511beeff7e31f403 (diff)
downloadllvm-5a418ba5f5a6498a25d5eacb0f876d9f358c977b.tar.gz
llvm-5a418ba5f5a6498a25d5eacb0f876d9f358c977b.tar.bz2
llvm-5a418ba5f5a6498a25d5eacb0f876d9f358c977b.tar.xz
Vectorizer: fix a bug in the classification of induction/reduction phis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/LoopVectorize/2012-10-20-infloop.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/LoopVectorize/2012-10-20-infloop.ll b/test/Transforms/LoopVectorize/2012-10-20-infloop.ll
index 16a7729199..5caaffc8dd 100644
--- a/test/Transforms/LoopVectorize/2012-10-20-infloop.ll
+++ b/test/Transforms/LoopVectorize/2012-10-20-infloop.ll
@@ -10,3 +10,18 @@ for.body:
br label %for.body
}
+
+
+define void @test2() nounwind {
+entry:
+ br label %for.body
+
+for.body: ; preds = %for.body, %entry
+ %indvars.iv47 = phi i64 [ 0, %entry ], [ %indvars.iv.next48, %for.body ]
+ %0 = phi i32 [ 1, %entry ], [ 0, %for.body ]
+ %indvars.iv.next48 = add i64 %indvars.iv47, 1
+ br i1 undef, label %for.end, label %for.body
+
+for.end: ; preds = %for.body
+ unreachable
+}