exit_in_condition.ll 980 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 internal fastcc zeroext i8 @handle_compress() nounwind {
  7. entry:
  8. br label %outer
  9. outer:
  10. br label %body
  11. body:
  12. br i1 1, label %body.i, label %if.end
  13. body.i:
  14. br i1 1, label %end, label %if.end
  15. if.end:
  16. br label %if.then64
  17. if.then64:
  18. br label %outer
  19. end:
  20. ret i8 1
  21. }
  22. ; CHECK-NOT: =>
  23. ; CHECK: [0] entry => <Function Return>
  24. ; CHECK-NEXT: [1] outer => end
  25. ; STAT: 2 region - The # of regions
  26. ; STAT: 1 region - The # of simple regions
  27. ; BBIT: entry, outer, body, body.i, end, if.end, if.then64,
  28. ; BBIT: outer, body, body.i, if.end, if.then64,
  29. ; RNIT: entry, outer => end, end,
  30. ; RNIT: outer, body, body.i, if.end, if.then64,