1 ; RUN: opt -jump-threading -S < %s
3 define void @func(i8 zeroext %p_44) nounwind {
5 br i1 false, label %for.cond2, label %if.end50
7 for.cond2: ; preds = %for.inc46, %lor.end, %entry
8 %p_44.addr.1 = phi i8 [ %p_44.addr.1, %lor.end ], [ %p_44, %entry ], [ %p_44.addr.1, %for.inc46 ]
9 br i1 undef, label %for.inc46, label %for.body5
11 for.body5: ; preds = %for.cond2
12 br i1 undef, label %lbl_465, label %if.then9
14 if.then9: ; preds = %for.body5
17 lbl_465: ; preds = %lbl_465, %for.body5
18 %tobool19 = icmp eq i8 undef, 0
19 br i1 %tobool19, label %if.end21, label %lbl_465
21 if.end21: ; preds = %lbl_465
22 %conv23 = zext i8 %p_44.addr.1 to i64
23 %xor = xor i64 %conv23, 1
24 %tobool.i = icmp eq i64 %conv23, 0
25 br i1 %tobool.i, label %cond.false.i, label %safe_mod_func_uint64_t_u_u.exit
27 cond.false.i: ; preds = %if.end21
28 %div.i = udiv i64 %xor, %conv23
29 br label %safe_mod_func_uint64_t_u_u.exit
31 safe_mod_func_uint64_t_u_u.exit: ; preds = %cond.false.i, %if.end21
32 %cond.i = phi i64 [ %div.i, %cond.false.i ], [ %conv23, %if.end21 ]
33 %tobool28 = icmp eq i64 %cond.i, 0
34 br i1 %tobool28, label %lor.rhs, label %lor.end
36 lor.rhs: ; preds = %safe_mod_func_uint64_t_u_u.exit
39 lor.end: ; preds = %lor.rhs, %safe_mod_func_uint64_t_u_u.exit
42 for.inc46: ; preds = %for.cond2
45 if.end50: ; preds = %entry
48 return: ; preds = %if.end50, %if.then9