1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll

24 lines
934 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | opt -indvars -disable-output
2005-02-12 04:26:30 +01:00
define void @_ZN5ArrayISt7complexIdEEC2ERK10dim_vector() {
2005-02-12 04:26:30 +01:00
entry:
%tmp.7 = invoke i32 @_ZN5ArrayISt7complexIdEE8get_sizeERK10dim_vector( )
to label %invoke_cont.0 unwind label %cond_true.1 ; <i32> [#uses=2]
2005-02-12 04:26:30 +01:00
cond_true.1: ; preds = %entry
unwind
2005-02-12 04:26:30 +01:00
invoke_cont.0: ; preds = %entry
%tmp.4.i = bitcast i32 %tmp.7 to i32 ; <i32> [#uses=0]
%tmp.14.0.i5 = add i32 %tmp.7, -1 ; <i32> [#uses=1]
br label %no_exit.i
2005-02-12 04:26:30 +01:00
no_exit.i: ; preds = %no_exit.i, %invoke_cont.0
%tmp.14.0.i.0 = phi i32 [ %tmp.14.0.i, %no_exit.i ], [ %tmp.14.0.i5, %invoke_cont.0 ] ; <i32> [#uses=1]
%tmp.14.0.i = add i32 %tmp.14.0.i.0, -1 ; <i32> [#uses=1]
br label %no_exit.i
2005-02-12 04:26:30 +01:00
}
declare i32 @_ZN5ArrayISt7complexIdEE8get_sizeERK10dim_vector()