Home | History | Annotate | Download | only in LCSSA
      1 ; RUN: opt < %s -loop-simplify -lcssa -S | FileCheck %s
      2 
      3         %struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }
      4 
      5 define void @__llvm_sjljeh_try_catching_longjmp_exception() {
      6 ; CHECK-LABEL: @__llvm_sjljeh_try_catching_longjmp_exception
      7 entry:
      8         br i1 false, label %UnifiedReturnBlock, label %no_exit
      9 no_exit:                ; preds = %endif, %entry
     10         %SJE.0.0 = phi %struct.SetJmpMapEntry* [ %tmp.24, %endif ], [ null, %entry ]            ; <%struct.SetJmpMapEntry*> [#uses=1]
     11         br i1 false, label %then, label %endif
     12 then:           ; preds = %no_exit
     13 ; CHECK: %SJE.0.0.lcssa = phi %struct.SetJmpMapEntry
     14         %tmp.20 = getelementptr %struct.SetJmpMapEntry, %struct.SetJmpMapEntry* %SJE.0.0, i32 0, i32 1          ; <i32*> [#uses=0]
     15         ret void
     16 endif:          ; preds = %no_exit
     17         %tmp.24 = load %struct.SetJmpMapEntry*, %struct.SetJmpMapEntry** null            ; <%struct.SetJmpMapEntry*> [#uses=1]
     18         br i1 false, label %UnifiedReturnBlock, label %no_exit
     19 UnifiedReturnBlock:             ; preds = %endif, %entry
     20         ret void
     21 }
     22 
     23