From 50237f28c5b8774fb48008828a0ea35cbdee7e7b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 12 Feb 2005 03:26:30 +0000 Subject: [PATCH] new testcase for PR504 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20128 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../IndVarsSimplify/2005-02-11-InvokeCrash.ll | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/Transforms/IndVarsSimplify/2005-02-11-InvokeCrash.ll diff --git a/test/Transforms/IndVarsSimplify/2005-02-11-InvokeCrash.ll b/test/Transforms/IndVarsSimplify/2005-02-11-InvokeCrash.ll new file mode 100644 index 00000000000..df925d14cb9 --- /dev/null +++ b/test/Transforms/IndVarsSimplify/2005-02-11-InvokeCrash.ll @@ -0,0 +1,22 @@ +; RUN: llvm-as < %s | opt -indvars -disable-output + +void %_ZN5ArrayISt7complexIdEEC2ERK10dim_vector() { +entry: + %tmp.7 = invoke int %_ZN5ArrayISt7complexIdEE8get_sizeERK10dim_vector( ) + to label %invoke_cont.0 unwind label %cond_true.1 ; [#uses=2] + +cond_true.1: ; preds = %entry + unwind + +invoke_cont.0: ; preds = %entry + %tmp.4.i = cast int %tmp.7 to uint ; [#uses=0] + %tmp.14.0.i5 = add int %tmp.7, -1 ; [#uses=1] + br label %no_exit.i + +no_exit.i: ; preds = %no_exit.i, %invoke_cont.0 + %tmp.14.0.i.0 = phi int [ %tmp.14.0.i, %no_exit.i ], [ %tmp.14.0.i5, %invoke_cont.0 ] ; [#uses=1] + %tmp.14.0.i = add int %tmp.14.0.i.0, -1 ; [#uses=1] + br label %no_exit.i +} + +declare int %_ZN5ArrayISt7complexIdEE8get_sizeERK10dim_vector()