2009-09-11 20:01:28 +02:00
|
|
|
; RUN: opt < %s -indvars -disable-output
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
define void @main() {
|
2005-06-15 23:28:55 +02:00
|
|
|
entry:
|
2008-03-01 10:15:35 +01:00
|
|
|
br label %no_exit.1.outer
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
no_exit.1.outer: ; preds = %endif.0, %entry
|
|
|
|
%l_14237116.1.0.ph = phi i8 [ -46, %entry ], [ 0, %endif.0 ] ; <i8> [#uses=1]
|
|
|
|
%i.0.0.0.ph = phi i32 [ 0, %entry ], [ %inc.1, %endif.0 ] ; <i32> [#uses=1]
|
|
|
|
br label %no_exit.1
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
no_exit.1: ; preds = %_Z13func_47880058cc.exit, %no_exit.1.outer
|
|
|
|
br i1 false, label %_Z13func_47880058cc.exit, label %then.i
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
then.i: ; preds = %no_exit.1
|
|
|
|
br label %_Z13func_47880058cc.exit
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
_Z13func_47880058cc.exit: ; preds = %then.i, %no_exit.1
|
|
|
|
br i1 false, label %then.0, label %no_exit.1
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
then.0: ; preds = %_Z13func_47880058cc.exit
|
|
|
|
%tmp.6 = bitcast i8 %l_14237116.1.0.ph to i8 ; <i8> [#uses=1]
|
|
|
|
br i1 false, label %endif.0, label %then.1
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
then.1: ; preds = %then.0
|
|
|
|
br label %endif.0
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
endif.0: ; preds = %then.1, %then.0
|
|
|
|
%inc.1 = add i32 %i.0.0.0.ph, 1 ; <i32> [#uses=2]
|
|
|
|
%tmp.2 = icmp sgt i32 %inc.1, 99 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.2, label %loopexit.0, label %no_exit.1.outer
|
2005-06-15 23:28:55 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
loopexit.0: ; preds = %endif.0
|
|
|
|
%tmp.28 = zext i8 %tmp.6 to i32 ; <i32> [#uses=0]
|
|
|
|
ret void
|
2005-06-15 23:28:55 +02:00
|
|
|
}
|
2008-03-01 10:15:35 +01:00
|
|
|
|