diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-10 20:39:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-10 20:39:53 +0000 |
commit | da7d0693b570778e98188b26c28a3ee155890b8e (patch) | |
tree | 5299dba448f318892f97e28e72496efdcdbed938 /test | |
parent | dead99325c91332ab1c6c1d44d449017cc06efb7 (diff) |
A new testcase, reduced by bugpoint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx b/test/Transforms/IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx new file mode 100644 index 0000000000..114dff52a0 --- /dev/null +++ b/test/Transforms/IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx @@ -0,0 +1,17 @@ +; RUN: llvm-as < %s | opt -indvars -disable-output + +void %test() { +entry: + %inc.2 = add int 1, 1 ; <int> [#uses=1] + br bool false, label %no_exit, label %loopexit + +no_exit: ; preds = %entry, %no_exit + %j.0.pn = phi int [ %inc.3, %no_exit ], [ %inc.2, %entry ] ; <int> [#uses=1] + %k.0.pn = phi int [ %inc.4, %no_exit ], [ 1, %entry ] ; <int> [#uses=1] + %inc.3 = add int %j.0.pn, 1 ; <int> [#uses=1] + %inc.4 = add int %k.0.pn, 1 ; <int> [#uses=1] + br bool false, label %no_exit, label %loopexit + +loopexit: ; preds = %entry, %no_exit + ret void +} |