x002.ll 456 B

12345678910111213141516171819202122
  1. ; RUN: %opt-exe %s -scopenested -scopenestinfo -analyze -S | %FileCheck %s
  2. ; CHECK: ScopeNestInfo:
  3. ; CHECK: @TopLevel_Begin
  4. ; CHECK: entry
  5. ; CHECK: if0.T
  6. ; CHECK: exit
  7. ; CHECK: @TopLevel_End
  8. define i32 @main(i1 %c1, i1 %c2, i1 %c3, i32 %i1, i32 %i2) {
  9. entry:
  10. %res = alloca i32
  11. store i32 1, i32 *%res
  12. br i1 %c1, label %if0.T, label %if0.T
  13. if0.T:
  14. store i32 2, i32 *%res
  15. br label %exit
  16. exit:
  17. %0 = load i32, i32 *%res
  18. ret i32 %0
  19. }