New testcase for PR223: Loopsimplify incorrectly updates dominator information
authorChris Lattner <sabre@nondot.org>
Thu, 5 Feb 2004 21:11:38 +0000 (21:11 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 5 Feb 2004 21:11:38 +0000 (21:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11136 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LoopSimplify/2004-02-05-DominatorInfoCorruption.ll [new file with mode: 0644]

diff --git a/test/Transforms/LoopSimplify/2004-02-05-DominatorInfoCorruption.ll b/test/Transforms/LoopSimplify/2004-02-05-DominatorInfoCorruption.ll
new file mode 100644 (file)
index 0000000..4d26b2c
--- /dev/null
@@ -0,0 +1,17 @@
+; RUN: llvm-as < %s | opt -loopsimplify -verify -licm -disable-output
+implementation   ; Functions:
+
+void %.subst_48() {
+entry:
+       br label %loopentry.0
+
+loopentry.0:            ; preds = %entry, %loopentry.0
+        br bool false, label %loopentry.0, label %loopentry.2
+
+loopentry.2:            ; preds = %loopentry.0, %loopentry.2
+        %tmp.968 = setle int 0, 3               ; <bool> [#uses=1]
+        br bool %tmp.968, label %loopentry.2, label %UnifiedReturnBlock
+
+UnifiedReturnBlock:             ; preds = %entry, %loopentry.2
+        ret void
+}