aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/LoopIndexSplit/PR4174.ll
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2010-05-04 16:11:02 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2010-05-04 16:11:02 +0000
commitd7f7719e5e082c0b8ea2182dcbd2242b7834aa26 (patch)
tree70fbd90da02177c8e6ef82adba9fa8ace285a5e3 /test/Transforms/LoopIndexSplit/PR4174.ll
parent9f4a1da9a0a56a0b0a7f8249f34b3cdea6179c41 (diff)
Update LLVM to r103004.
Notes
Notes: svn path=/vendor/llvm/dist/; revision=207618
Diffstat (limited to 'test/Transforms/LoopIndexSplit/PR4174.ll')
-rw-r--r--test/Transforms/LoopIndexSplit/PR4174.ll23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Transforms/LoopIndexSplit/PR4174.ll b/test/Transforms/LoopIndexSplit/PR4174.ll
new file mode 100644
index 000000000000..e8f5a737f05b
--- /dev/null
+++ b/test/Transforms/LoopIndexSplit/PR4174.ll
@@ -0,0 +1,23 @@
+; RUN: llvm-as < %s | opt -loop-index-split | llvm-dis | not grep clone
+
+declare void @f()
+
+define i32 @main() {
+entry:
+ br label %head
+head:
+ %i = phi i32 [0, %entry], [%i1, %tail]
+ call void @f()
+ %splitcond = icmp slt i32 %i, 2
+ br i1 %splitcond, label %yes, label %no
+yes:
+ br label %tail
+no:
+ br label %tail
+tail:
+ %i1 = add i32 %i, 1
+ %exitcond = icmp slt i32 %i1, 4
+ br i1 %exitcond, label %head, label %exit
+exit:
+ ret i32 0
+}