1*cee313d2SEric Christopher; RUN: opt -jump-threading -S < %s 2*cee313d2SEric Christopher 3*cee313d2SEric Christopherdefine void @func(i8 zeroext %p_44) nounwind { 4*cee313d2SEric Christopherentry: 5*cee313d2SEric Christopher br i1 false, label %for.cond2, label %if.end50 6*cee313d2SEric Christopher 7*cee313d2SEric Christopherfor.cond2: ; preds = %for.inc46, %lor.end, %entry 8*cee313d2SEric Christopher %p_44.addr.1 = phi i8 [ %p_44.addr.1, %lor.end ], [ %p_44, %entry ], [ %p_44.addr.1, %for.inc46 ] 9*cee313d2SEric Christopher br i1 undef, label %for.inc46, label %for.body5 10*cee313d2SEric Christopher 11*cee313d2SEric Christopherfor.body5: ; preds = %for.cond2 12*cee313d2SEric Christopher br i1 undef, label %lbl_465, label %if.then9 13*cee313d2SEric Christopher 14*cee313d2SEric Christopherif.then9: ; preds = %for.body5 15*cee313d2SEric Christopher br label %return 16*cee313d2SEric Christopher 17*cee313d2SEric Christopherlbl_465: ; preds = %lbl_465, %for.body5 18*cee313d2SEric Christopher %tobool19 = icmp eq i8 undef, 0 19*cee313d2SEric Christopher br i1 %tobool19, label %if.end21, label %lbl_465 20*cee313d2SEric Christopher 21*cee313d2SEric Christopherif.end21: ; preds = %lbl_465 22*cee313d2SEric Christopher %conv23 = zext i8 %p_44.addr.1 to i64 23*cee313d2SEric Christopher %xor = xor i64 %conv23, 1 24*cee313d2SEric Christopher %tobool.i = icmp eq i64 %conv23, 0 25*cee313d2SEric Christopher br i1 %tobool.i, label %cond.false.i, label %safe_mod_func_uint64_t_u_u.exit 26*cee313d2SEric Christopher 27*cee313d2SEric Christophercond.false.i: ; preds = %if.end21 28*cee313d2SEric Christopher %div.i = udiv i64 %xor, %conv23 29*cee313d2SEric Christopher br label %safe_mod_func_uint64_t_u_u.exit 30*cee313d2SEric Christopher 31*cee313d2SEric Christophersafe_mod_func_uint64_t_u_u.exit: ; preds = %cond.false.i, %if.end21 32*cee313d2SEric Christopher %cond.i = phi i64 [ %div.i, %cond.false.i ], [ %conv23, %if.end21 ] 33*cee313d2SEric Christopher %tobool28 = icmp eq i64 %cond.i, 0 34*cee313d2SEric Christopher br i1 %tobool28, label %lor.rhs, label %lor.end 35*cee313d2SEric Christopher 36*cee313d2SEric Christopherlor.rhs: ; preds = %safe_mod_func_uint64_t_u_u.exit 37*cee313d2SEric Christopher br label %lor.end 38*cee313d2SEric Christopher 39*cee313d2SEric Christopherlor.end: ; preds = %lor.rhs, %safe_mod_func_uint64_t_u_u.exit 40*cee313d2SEric Christopher br label %for.cond2 41*cee313d2SEric Christopher 42*cee313d2SEric Christopherfor.inc46: ; preds = %for.cond2 43*cee313d2SEric Christopher br label %for.cond2 44*cee313d2SEric Christopher 45*cee313d2SEric Christopherif.end50: ; preds = %entry 46*cee313d2SEric Christopher br label %return 47*cee313d2SEric Christopher 48*cee313d2SEric Christopherreturn: ; preds = %if.end50, %if.then9 49*cee313d2SEric Christopher ret void 50*cee313d2SEric Christopher} 51