aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll b/test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll
new file mode 100644
index 0000000000..8e1337993f
--- /dev/null
+++ b/test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -loopsimplify -licm -disable-output
+void %main() {
+entry:
+ br bool false, label %Out, label %loop
+
+loop:
+ %LI = setgt int 0, 0
+ br bool %LI, label %loop, label %Out
+
+Out:
+ ret void
+}