Testcase where GVNPRE crashes on functions with no exit nodes.
authorOwen Anderson <resistor@mac.com>
Tue, 12 Jun 2007 16:56:00 +0000 (16:56 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 12 Jun 2007 16:56:00 +0000 (16:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37555 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/GVNPRE/2007-06-12-NoExit.ll [new file with mode: 0644]

diff --git a/test/Transforms/GVNPRE/2007-06-12-NoExit.ll b/test/Transforms/GVNPRE/2007-06-12-NoExit.ll
new file mode 100644 (file)
index 0000000..b93a956
--- /dev/null
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | opt -gvnpre | llvm-dis
+
+define void @_Z4sortI3Lit16LessThan_defaultIS0_EEvPT_iT0_() {
+entry:
+       br label %cond_false
+
+cond_false:            ; preds = %cond_false, %entry
+       br label %cond_false
+}