aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-06-12 16:56:00 +0000
committerOwen Anderson <resistor@mac.com>2007-06-12 16:56:00 +0000
commit93f905daef8054434defbb3b01d3a5e9e9be6dc8 (patch)
treebafca593d11d4751d7bc4d1aaf9b5104993a042f /test/Transforms
parentce0b23721e434789f9600c0fd13f0ca17444264f (diff)
downloadexternal_llvm-93f905daef8054434defbb3b01d3a5e9e9be6dc8.zip
external_llvm-93f905daef8054434defbb3b01d3a5e9e9be6dc8.tar.gz
external_llvm-93f905daef8054434defbb3b01d3a5e9e9be6dc8.tar.bz2
Testcase where GVNPRE crashes on functions with no exit nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/GVNPRE/2007-06-12-NoExit.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/GVNPRE/2007-06-12-NoExit.ll b/test/Transforms/GVNPRE/2007-06-12-NoExit.ll
new file mode 100644
index 0000000..b93a956
--- /dev/null
+++ b/test/Transforms/GVNPRE/2007-06-12-NoExit.ll
@@ -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
+}