aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/TailDup
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-23 03:32:11 +0000
committerChris Lattner <sabre@nondot.org>2003-07-23 03:32:11 +0000
commite1a875ef29106e9546fd3889eb27a39cad577cdf (patch)
tree57cfc12bc37a973c8029b263b7a0d3a6902ddb15 /test/Transforms/TailDup
parent1ba5bcd1ae23805b41e28d3cf62a11b18b465348 (diff)
New testcase that caused infinite loop in taildup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/TailDup')
-rw-r--r--test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll b/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll
new file mode 100644
index 0000000000..3e6ca09dae
--- /dev/null
+++ b/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll
@@ -0,0 +1,13 @@
+; RUN: as < %s | opt -tailduplicate -disable-output
+
+implementation
+
+int %sum() {
+entry:
+ br label %loopentry
+
+loopentry:
+ %i.0 = phi int [ 1, %entry ], [ %tmp.3, %loopentry ]
+ %tmp.3 = add int %i.0, 1
+ br label %loopentry
+}