23 lines · plain
1; RUN: opt < %s -passes=loop-simplify,lcssa -S | FileCheck %s2 3 %struct.SetJmpMapEntry = type { ptr, i32, ptr }4 5define void @__llvm_sjljeh_try_catching_longjmp_exception() {6; CHECK-LABEL: @__llvm_sjljeh_try_catching_longjmp_exception7entry:8 br i1 false, label %UnifiedReturnBlock, label %no_exit9no_exit: ; preds = %endif, %entry10 %SJE.0.0 = phi ptr [ %tmp.24, %endif ], [ null, %entry ] ; <ptr> [#uses=1]11 br i1 false, label %then, label %endif12then: ; preds = %no_exit13; CHECK: %SJE.0.0.lcssa = phi ptr14 %tmp.20 = getelementptr %struct.SetJmpMapEntry, ptr %SJE.0.0, i32 0, i32 1 ; <ptr> [#uses=0]15 ret void16endif: ; preds = %no_exit17 %tmp.24 = load ptr, ptr null ; <ptr> [#uses=1]18 br i1 false, label %UnifiedReturnBlock, label %no_exit19UnifiedReturnBlock: ; preds = %endif, %entry20 ret void21}22 23