From 6d1df658c042342774cd1babbb21cb2dac9b7ad2 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. llvm-svn: 37555 --- llvm/test/Transforms/GVNPRE/2007-06-12-NoExit.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 llvm/test/Transforms/GVNPRE/2007-06-12-NoExit.ll diff --git a/llvm/test/Transforms/GVNPRE/2007-06-12-NoExit.ll b/llvm/test/Transforms/GVNPRE/2007-06-12-NoExit.ll new file mode 100644 index 000000000000..b93a956b2f15 --- /dev/null +++ b/llvm/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 +}