block_sort.ll 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ; REQUIRES: asserts
  2. ; RUN: opt -regions -analyze < %s | FileCheck %s
  3. ; RUN: opt -regions -stats -analyze < %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 @BZ2_blockSort() nounwind {
  7. start:
  8. br label %while
  9. while:
  10. br label %while.body134.i.i
  11. while.body134.i.i:
  12. br i1 1, label %end, label %w
  13. w:
  14. br label %if.end140.i.i
  15. if.end140.i.i:
  16. br i1 1, label %while.end186.i.i, label %if.end183.i.i
  17. if.end183.i.i:
  18. br label %while.body134.i.i
  19. while.end186.i.i:
  20. br label %while
  21. end:
  22. ret void
  23. }
  24. ; CHECK-NOT: =>
  25. ; CHECK: [0] start => <Function Return>
  26. ; CHECK: [1] while => end
  27. ; STAT: 2 region - The # of regions
  28. ; STAT: 1 region - The # of simple regions
  29. ; BBIT: start, while, while.body134.i.i, end, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
  30. ; BBIT: while, while.body134.i.i, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
  31. ; RNIT: start, while => end, end,
  32. ; RNIT: while, while.body134.i.i, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,