cf018.ll 639 B

1234567891011121314151617181920212223242526272829303132
  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_Else
  8. ; CHECK: if0.F
  9. ; CHECK: @If_End
  10. ; CHECK: dx.EndIfScope
  11. ; CHECK: if0.end
  12. ; CHECK: @TopLevel_End
  13. define i32 @main(i1 %c1, i1 %c2, i1 %c3, i32 %i1, i32 %i2) {
  14. entry:
  15. %res = alloca i32
  16. store i32 1, i32 *%res
  17. br i1 %c1, label %if0.T, label %if0.F
  18. if0.T:
  19. store i32 2, i32 *%res
  20. br label %if0.end
  21. if0.F:
  22. store i32 7, i32 *%res
  23. br label %if0.end
  24. if0.end:
  25. %0 = load i32, i32 *%res
  26. ret i32 %0
  27. }