1 ; RUN: opt < %s -loop-simplify -lcssa -S | FileCheck %s
3 %struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }
5 define void @__llvm_sjljeh_try_catching_longjmp_exception() {
6 ; CHECK-LABEL: @__llvm_sjljeh_try_catching_longjmp_exception
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]
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