1; RUN: opt < %s -loop-simplify -lcssa -S | \
2; RUN:   grep "%%SJE.0.0.lcssa = phi .struct.SetJmpMapEntry"
3
4        %struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }
5
6define void @__llvm_sjljeh_try_catching_longjmp_exception() {
7entry:
8        br i1 false, label %UnifiedReturnBlock, label %no_exit
9no_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
12then:           ; preds = %no_exit
13        %tmp.20 = getelementptr %struct.SetJmpMapEntry, %struct.SetJmpMapEntry* %SJE.0.0, i32 0, i32 1          ; <i32*> [#uses=0]
14        ret void
15endif:          ; preds = %no_exit
16        %tmp.24 = load %struct.SetJmpMapEntry*, %struct.SetJmpMapEntry** null            ; <%struct.SetJmpMapEntry*> [#uses=1]
17        br i1 false, label %UnifiedReturnBlock, label %no_exit
18UnifiedReturnBlock:             ; preds = %endif, %entry
19        ret void
20}
21
22