cf015.ll 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ; RUN: %opt-exe %s -scopenested -scopenestinfo -analyze -S | %FileCheck %s
  2. ; CHECK: ScopeNestInfo:
  3. ; CHECK: @TopLevel_Begin
  4. ; CHECK: entry
  5. ; CHECK: @If_Begin
  6. ; CHECK: if0.T
  7. ; CHECK: @If_Begin
  8. ; CHECK: @If_Else
  9. ; CHECK: if1.F
  10. ; CHECK: @If_End
  11. ; CHECK: dx.EndIfScope.1
  12. ; CHECK: @If_Else
  13. ; CHECK: if0.F
  14. ; CHECK: @If_End
  15. ; CHECK: dx.EndIfScope
  16. ; CHECK: if0.end
  17. ; CHECK: @TopLevel_End
  18. define i32 @main(i1 %c1, i1 %c2, i1 %c3, i32 %i1, i32 %i2) {
  19. entry:
  20. %res = alloca i32
  21. store i32 1, i32 *%res
  22. br i1 %c1, label %if0.T, label %if0.F
  23. if0.T:
  24. store i32 2, i32 *%res
  25. br i1 %c2, label %if0.end, label %if1.F
  26. if1.F:
  27. store i32 6, i32 *%res
  28. br label %if0.end
  29. if0.F:
  30. store i32 3, i32 *%res
  31. br label %if0.end
  32. if0.end:
  33. %0 = load i32, i32 *%res
  34. ret i32 %0
  35. }