pr9331.ll 1.9 KB

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