aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll')
-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 0000000..607f1fe
--- /dev/null
+++ b/test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-upgrade < %s | llvm-as | 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
+}