summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-16 00:56:15 +0000
committerDan Gohman <gohman@apple.com>2009-02-16 00:56:15 +0000
commit73f794af6a4814ab81743f3b1237e4d042bc87d9 (patch)
tree81f2f0547fb87a10fd1ee49f6fc8eb9b2182aa07 /llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll
parent9cdfd44521e035ccc571b37d6b48fe391b00961e (diff)
downloadbcm5719-llvm-73f794af6a4814ab81743f3b1237e4d042bc87d9.tar.gz
bcm5719-llvm-73f794af6a4814ab81743f3b1237e4d042bc87d9.zip
Rename IndVarsSimplify to IndVarSimplify, to be consistent with
the name used in the code that these tests are for. llvm-svn: 64624
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll')
-rw-r--r--llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll27
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll b/llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll
new file mode 100644
index 00000000000..b4eb3db1909
--- /dev/null
+++ b/llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll
@@ -0,0 +1,27 @@
+; RUN: llvm-as < %s | opt -indvars -disable-output
+
+define void @.outPlank_21() {
+entry:
+ br i1 false, label %loopexit.0, label %no_exit.0
+
+no_exit.0: ; preds = %entry
+ ret void
+
+loopexit.0: ; preds = %entry
+ br i1 false, label %no_exit.1, label %loopexit.1
+
+no_exit.1: ; preds = %loopexit.2, %loopexit.0
+ %i.0.0 = phi i32 [ %inc, %loopexit.2 ], [ 0, %loopexit.0 ] ; <i32> [#uses=1]
+ br i1 false, label %loopexit.2, label %no_exit.2
+
+no_exit.2: ; preds = %no_exit.1
+ ret void
+
+loopexit.2: ; preds = %no_exit.1
+ %inc = add i32 %i.0.0, 1 ; <i32> [#uses=1]
+ br i1 false, label %no_exit.1, label %loopexit.1
+
+loopexit.1: ; preds = %loopexit.2, %loopexit.0
+ ret void
+}
+
OpenPOWER on IntegriCloud