cond_loop.ll 777 B

12345678910111213141516171819202122232425262728293031323334
  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. 5:
  8. br label %"0"
  9. 0:
  10. br label %"1"
  11. 1:
  12. br i1 1, label %"2", label %"3"
  13. 2:
  14. ret void
  15. 3:
  16. br i1 1, label %"1", label %"4"
  17. 4:
  18. br label %"0"
  19. }
  20. ; CHECK-NOT: =>
  21. ; CHECK: [0] 5 => <Function Return>
  22. ; CHECK: [1] 0 => 2
  23. ; STAT: 2 region - The # of regions
  24. ; STAT: 1 region - The # of simple regions
  25. ; BBIT: 5, 0, 1, 2, 3, 4,
  26. ; BBIT: 0, 1, 3, 4,
  27. ; RNIT: 5, 0 => 2, 2,
  28. ; RNIT: 0, 1, 3, 4,