1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -indvars -disable-output 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workerdefine void @main() { 4*9880d681SAndroid Build Coastguard Workerentry: 5*9880d681SAndroid Build Coastguard Worker br label %no_exit.1.outer 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerno_exit.1.outer: ; preds = %endif.0, %entry 8*9880d681SAndroid Build Coastguard Worker %l_14237116.1.0.ph = phi i8 [ -46, %entry ], [ 0, %endif.0 ] ; <i8> [#uses=1] 9*9880d681SAndroid Build Coastguard Worker %i.0.0.0.ph = phi i32 [ 0, %entry ], [ %inc.1, %endif.0 ] ; <i32> [#uses=1] 10*9880d681SAndroid Build Coastguard Worker br label %no_exit.1 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerno_exit.1: ; preds = %_Z13func_47880058cc.exit, %no_exit.1.outer 13*9880d681SAndroid Build Coastguard Worker br i1 false, label %_Z13func_47880058cc.exit, label %then.i 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerthen.i: ; preds = %no_exit.1 16*9880d681SAndroid Build Coastguard Worker br label %_Z13func_47880058cc.exit 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker_Z13func_47880058cc.exit: ; preds = %then.i, %no_exit.1 19*9880d681SAndroid Build Coastguard Worker br i1 false, label %then.0, label %no_exit.1 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerthen.0: ; preds = %_Z13func_47880058cc.exit 22*9880d681SAndroid Build Coastguard Worker %tmp.6 = bitcast i8 %l_14237116.1.0.ph to i8 ; <i8> [#uses=1] 23*9880d681SAndroid Build Coastguard Worker br i1 false, label %endif.0, label %then.1 24*9880d681SAndroid Build Coastguard Worker 25*9880d681SAndroid Build Coastguard Workerthen.1: ; preds = %then.0 26*9880d681SAndroid Build Coastguard Worker br label %endif.0 27*9880d681SAndroid Build Coastguard Worker 28*9880d681SAndroid Build Coastguard Workerendif.0: ; preds = %then.1, %then.0 29*9880d681SAndroid Build Coastguard Worker %inc.1 = add i32 %i.0.0.0.ph, 1 ; <i32> [#uses=2] 30*9880d681SAndroid Build Coastguard Worker %tmp.2 = icmp sgt i32 %inc.1, 99 ; <i1> [#uses=1] 31*9880d681SAndroid Build Coastguard Worker br i1 %tmp.2, label %loopexit.0, label %no_exit.1.outer 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard Workerloopexit.0: ; preds = %endif.0 34*9880d681SAndroid Build Coastguard Worker %tmp.28 = zext i8 %tmp.6 to i32 ; <i32> [#uses=0] 35*9880d681SAndroid Build Coastguard Worker ret void 36*9880d681SAndroid Build Coastguard Worker} 37*9880d681SAndroid Build Coastguard Worker 38