cf012.ll 422 B

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