2008-06-02-DomInfo.ll 860 B

1234567891011121314151617181920212223242526
  1. ; RUN: opt < %s -loop-unswitch -instcombine -gvn -disable-output
  2. ; PR2372
  3. target triple = "i386-pc-linux-gnu"
  4. define i32 @func_3(i16 signext %p_5, i16 signext %p_6) nounwind {
  5. entry:
  6. %tmp3 = icmp eq i16 %p_5, 0 ; <i1> [#uses=1]
  7. %tmp1314 = sext i16 %p_6 to i32 ; <i32> [#uses=1]
  8. %tmp28 = icmp ugt i32 %tmp1314, 3 ; <i1> [#uses=1]
  9. %bothcond = or i1 %tmp28, false ; <i1> [#uses=1]
  10. br label %bb
  11. bb: ; preds = %bb54, %entry
  12. br i1 %tmp3, label %bb54, label %bb5
  13. bb5: ; preds = %bb
  14. br i1 %bothcond, label %bb54, label %bb31
  15. bb31: ; preds = %bb5
  16. br label %bb54
  17. bb54: ; preds = %bb31, %bb5, %bb
  18. br i1 false, label %bb64, label %bb
  19. bb64: ; preds = %bb54
  20. %tmp6566 = sext i16 %p_6 to i32 ; <i32> [#uses=1]
  21. %tmp68 = tail call i32 (...) @func_18( i32 1, i32 %tmp6566, i32 1 ) nounwind ; <i32> [#uses=0]
  22. ret i32 undef
  23. }
  24. declare i32 @func_18(...)