2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -indvars -disable-output
|
2005-02-18 00:53:41 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
declare void @q_atomic_increment()
|
2005-02-18 00:53:41 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
declare void @_Z9qt_assertPKcS0_i()
|
2005-02-18 00:53:41 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define void @_ZN13QMetaResourceC1EPKh() {
|
2005-02-18 00:53:41 +08:00
|
|
|
entry:
|
2008-03-01 17:15:35 +08:00
|
|
|
invoke void @_Z9qt_assertPKcS0_i( )
|
2005-02-18 00:53:41 +08:00
|
|
|
to label %endif.1 unwind label %then.i.i551
|
|
|
|
|
|
|
|
then.i.i551: ; preds = %entry
|
2011-09-01 09:02:41 +08:00
|
|
|
%exn551 = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
|
|
|
|
cleanup
|
2005-02-18 00:53:41 +08:00
|
|
|
ret void
|
|
|
|
|
|
|
|
endif.1: ; preds = %entry
|
2008-03-01 17:15:35 +08:00
|
|
|
br i1 false, label %then.2, label %then.i.i
|
2005-02-18 00:53:41 +08:00
|
|
|
|
|
|
|
then.2: ; preds = %endif.1
|
2008-03-01 17:15:35 +08:00
|
|
|
invoke void @q_atomic_increment( )
|
2005-02-18 00:53:41 +08:00
|
|
|
to label %loopentry.0 unwind label %invoke_catch.6
|
|
|
|
|
|
|
|
invoke_catch.6: ; preds = %then.2
|
2011-09-01 09:02:41 +08:00
|
|
|
%exn6 = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
|
|
|
|
cleanup
|
2005-02-18 00:53:41 +08:00
|
|
|
ret void
|
|
|
|
|
|
|
|
loopentry.0: ; preds = %then.2
|
2008-03-01 17:15:35 +08:00
|
|
|
br i1 false, label %shortcirc_next.i, label %endif.3
|
2005-02-18 00:53:41 +08:00
|
|
|
|
|
|
|
endif.3: ; preds = %loopentry.0
|
|
|
|
ret void
|
|
|
|
|
|
|
|
shortcirc_next.i: ; preds = %loopentry.0
|
2008-03-01 17:15:35 +08:00
|
|
|
br i1 false, label %_ZNK7QString2atEi.exit, label %then.i
|
2005-02-18 00:53:41 +08:00
|
|
|
|
|
|
|
then.i: ; preds = %shortcirc_next.i
|
|
|
|
ret void
|
|
|
|
|
|
|
|
_ZNK7QString2atEi.exit: ; preds = %shortcirc_next.i
|
2008-03-01 17:15:35 +08:00
|
|
|
br i1 false, label %endif.4, label %then.4
|
2005-02-18 00:53:41 +08:00
|
|
|
|
|
|
|
then.4: ; preds = %_ZNK7QString2atEi.exit
|
|
|
|
ret void
|
|
|
|
|
|
|
|
endif.4: ; preds = %_ZNK7QString2atEi.exit
|
2008-03-01 17:15:35 +08:00
|
|
|
%tmp.115 = load i8* null ; <i8> [#uses=1]
|
|
|
|
br i1 false, label %loopexit.1, label %no_exit.0
|
2005-02-18 00:53:41 +08:00
|
|
|
|
|
|
|
no_exit.0: ; preds = %no_exit.0, %endif.4
|
2008-03-01 17:15:35 +08:00
|
|
|
%bytes_in_len.4.5 = phi i8 [ %dec, %no_exit.0 ], [ %tmp.115, %endif.4 ] ; <i8> [#uses=1]
|
|
|
|
%off.5.5.in = phi i32 [ %off.5.5, %no_exit.0 ], [ 0, %endif.4 ] ; <i32> [#uses=1]
|
|
|
|
%off.5.5 = add i32 %off.5.5.in, 1 ; <i32> [#uses=2]
|
|
|
|
%dec = add i8 %bytes_in_len.4.5, -1 ; <i8> [#uses=2]
|
|
|
|
%tmp.123631 = icmp eq i8 %dec, 0 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.123631, label %loopexit.1, label %no_exit.0
|
2005-02-18 00:53:41 +08:00
|
|
|
|
|
|
|
loopexit.1: ; preds = %no_exit.0, %endif.4
|
2008-03-01 17:15:35 +08:00
|
|
|
%off.5.in.6 = phi i32 [ 0, %endif.4 ], [ %off.5.5, %no_exit.0 ] ; <i32> [#uses=0]
|
2005-02-18 00:53:41 +08:00
|
|
|
ret void
|
|
|
|
|
|
|
|
then.i.i: ; preds = %endif.1
|
|
|
|
ret void
|
|
|
|
}
|
2011-09-01 09:02:41 +08:00
|
|
|
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|