From 93f905daef8054434defbb3b01d3a5e9e9be6dc8 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 12 Jun 2007 16:56:00 +0000 Subject: [PATCH] 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 --- test/Transforms/GVNPRE/2007-06-12-NoExit.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Transforms/GVNPRE/2007-06-12-NoExit.ll 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 00000000000..b93a956b2f1 --- /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 +}