condition_same_exit.ll 759 B

1234567891011121314151617181920212223242526272829303132
  1. ; REQUIRES: asserts
  2. ; RUN: opt -regions -analyze < %s | FileCheck %s
  3. ; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
  4. ; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
  5. ; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
  6. define void @normal_condition() nounwind {
  7. 0:
  8. br i1 1, label %"1", label %"4"
  9. 1:
  10. br i1 1, label %"2", label %"3"
  11. 2:
  12. br label %"4"
  13. 3:
  14. br label %"4"
  15. 4:
  16. ret void
  17. }
  18. ; CHECK-NOT: =>
  19. ; CHECK: [0] 0 => <Function Return>
  20. ; CHECK-NEXT: [1] 0 => 4
  21. ; CHECK-NEXT: [2] 1 => 4
  22. ; STAT: 3 region - The # of regions
  23. ; BBIT: 0, 1, 2, 4, 3,
  24. ; BBIT: 0, 1, 2, 3,
  25. ; BBIT: 1, 2, 3,
  26. ; RNIT: 0 => 4, 4,
  27. ; RNIT: 0, 1 => 4,
  28. ; RNIT: 1, 2, 3,