multiple_exiting_edge.ll 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
  2. ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
  3. define void @normal_condition_0() nounwind {
  4. bb38: ; preds = %bb34, %bb34, %bb37
  5. switch i32 undef, label %bb42 [
  6. i32 67, label %bb42
  7. i32 90, label %bb41
  8. ]
  9. bb41: ; preds = %bb38
  10. br label %bb42
  11. bb42: ; preds = %bb38, %bb38, %bb41
  12. ret void
  13. }
  14. ; BBIT: bb38, bb42, bb41,
  15. ; BBIT: bb38, bb41,
  16. ; RNIT: bb38 => bb42, bb42,
  17. ; RNIT: bb38, bb41,
  18. define void @normal_condition_1() nounwind {
  19. bb38: ; preds = %bb34, %bb34, %bb37
  20. switch i32 undef, label %bb41 [
  21. i32 67, label %bb42
  22. i32 90, label %bb42
  23. ]
  24. bb41: ; preds = %bb38
  25. br label %bb42
  26. bb42: ; preds = %bb38, %bb38, %bb41
  27. ret void
  28. }
  29. ; BBIT: bb38, bb41, bb42,
  30. ; BBIT: bb38, bb41,
  31. ; RNIT: bb38 => bb42, bb42,
  32. ; RNIT: bb38, bb41,